fsnotes icon indicating copy to clipboard operation
fsnotes copied to clipboard

embedded SVG image is invisible in edit mode

Open mkon opened this issue 2 years ago • 0 comments

Description

When adding an SVG as a markdown image tag like so:

xxx
![svg](assets/test.svg)
xxx

It seems the editor only draws it 1x1 pixel or not at all, it is not visible.

If I use preview mode the SVG is rendered just fine.

I used the example SVG from here: https://www.w3schools.com/graphics/tryit.asp?filename=trysvg_circle

Bildschirm­foto 2023-03-02 um 20 30 12 Bildschirm­foto 2023-03-02 um 20 30 21

To Reproduce

  1. Create new textbundle note
  2. Create test.svg file with contents from https://www.w3schools.com/graphics/tryit.asp?filename=trysvg_circle
  3. Drag the SVG image into the note
  4. Swap between edit and view mode, SVG is not visible in edit mode

Expected behavior

I would expect to see the SVG file or image in edit mode in some way so I do not accidentally delete it.

FSNotes version

Version 6.1.4 (559)

macOS/iOS version

13.2 (22D49)

Additional context

No response

mkon avatar Mar 02 '23 19:03 mkon