SVG support

Eddie Smith's Avatar

Eddie Smith

15 Jun, 2017 03:21 PM

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

  1. Support Staff 1 Posted by Brett on 15 Jun, 2017 06:54 PM

    Brett's Avatar

    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. 2 Posted by Eddie Smith on 19 Jun, 2017 02:39 PM

    Eddie Smith's Avatar

    Thanks -- still can't get it to work even after adding a `div` tag

  3. Support Staff 3 Posted by Brett on 19 Jun, 2017 03:19 PM

    Brett's Avatar

    Do you happen to have "preserve line breaks in paragraphs" enabled in
    Processor preferences?

    -Brett

  4. Support Staff 4 Posted by Brett on 19 Jun, 2017 03:21 PM

    Brett's Avatar

    Also, if using the MultiMarkdown processor, try toggling "Process
    Markdown in HTML" and see if that makes a difference.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • markdown-with-svg.md 2.57 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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