Closed wesley-wws closed 1 year ago
Markdown knows everything html knows, so to display an image it has to b jpg/png/svg and maybe some other image format, but .drawio isn't actually an image format.
You can however create a test.drawio.png file, and drawio will let you edit it and immediately add working png code, while markdown will display the png image.
Yeah I have been saving files as *.drawio.png and they work as Markdown images :) Svg was the first format I tried but that didn't work (presumably no EXIF info?)
Not sure why svg doesn't work for you, I can use it the same as png:
It's because I'm displaying the content in DevOps, not Github or VSCode preview. DevOps does not like SVG
Markdown knows everything html knows, so to display an image it has to b jpg/png/svg and maybe some other image format, but .drawio isn't actually an image format.
You can however create a test.drawio.png file, and drawio will let you edit it and immediately add working png code, while markdown will display the png image.
OK thanks, seems like I have to create a new png file from my .drawio file...
create a new png file from my .drawio file...
You should be able to just rename it. Open the file and save it and then it should be a proper png files.
Just try to use SVG whenever possible.
Hi,
Thanks for the awsome extension!
I can't preview drawio diagram in Markdown preview, not sure whether it is a bug.