Skip to content

Insert image into code section creates invalid syntax #855

@Joshuah143

Description

@Joshuah143

Description

When an image is copy-pasted or dragging into a document, it always inserts #image('NAME'). However, when the image it is being inserted into a code section like below, it still adds the # to escape, but it is not required.

#figure(
  <PASTE LOCATION>
)

When I paste into the above example, I would expect it to omit the #.

Sorry that this is such a small bug. I am super happy with typst otherwise!

Reproduction URL

No response

Browsers

Safari

OS

macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working.editorRelated to the text/markup editor.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions