SVG support
I have a markdown file with an SVG tag (attached), and Marked doesn't seem to render the SVG. Not sure if that is intentional or just not a supported HTML tag.
Eddie
- markdown-with-svg.md 2.57 KB
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Brett on 15 Jun, 2017 06:54 PM
It actually does render it, except that when MultiMarkdown is the
processor it tends to convert characters like " and < to html entities,
thus destroying it as markup. The easy solution is to wrap it in a div
and turn off "process markdown inside of html" in Processor preferences.
So your document would just include:
<div>
<svg...></svg>
</div>
The additional <div> won't alter any export from Marked or anywhere
else, so it's harmless.
-Brett
2 Posted by Eddie Smith on 19 Jun, 2017 02:39 PM
Thanks -- still can't get it to work even after adding a `div` tag
Support Staff 3 Posted by Brett on 19 Jun, 2017 03:19 PM
Do you happen to have "preserve line breaks in paragraphs" enabled in
Processor preferences?
-Brett
Support Staff 4 Posted by Brett on 19 Jun, 2017 03:21 PM
Also, if using the MultiMarkdown processor, try toggling "Process
Markdown in HTML" and see if that makes a difference.