-
-
Notifications
You must be signed in to change notification settings - Fork 2
Insert image into code section creates invalid syntax #855
Copy link
Copy link
Open
Labels
bugSomething isn't working.Something isn't working.editorRelated to the text/markup editor.Related to the text/markup editor.
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't working.Something isn't working.editorRelated to the text/markup editor.Related to the text/markup editor.