framer-moreutils
framer-moreutils copied to clipboard
Enhancement: Markdown with images
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.