framer-moreutils icon indicating copy to clipboard operation
framer-moreutils copied to clipboard

Enhancement: Markdown with images

Open bruskowski opened this issue 7 years ago • 0 comments

In a recent project, I added the following line to the toMarkdown() regexes and it seemed to work:

[/\!\[(.*?)\]/, '<img src="images/$1" width="300" height="100" />']

[!filename.png] --> <img src="images/filename.png" width="300" height="100" />

It's not yet proper Markdown and I guess the produced HTML is not really clean ("<div><span><img /></span></div>"). Also the image's size has to come from somewhere. But maybe this hack is useful to somebody or could even mature into a feature.

bruskowski avatar Mar 02 '18 13:03 bruskowski