This link crashes Marked

Martin Packer's Avatar

Martin Packer

25 Apr, 2022 03:33 PM

The above link crashes Marked but not other Markdown processors. It's not exotic but it is, I suppose, quite long.

Thanks, Martin Packer

  1. Support Staff 1 Posted by Brett on 25 Apr, 2022 03:49 PM

    Brett's Avatar

    Does it also crash if you use the Discount (GFM) processor?


  2. Support Staff 2 Posted by Brett on 25 Apr, 2022 09:12 PM

    Brett's Avatar

    I'm not sure if this has anything to do with it (because it actually
    loaded fine for me using the MMD processor), but there's a line in your
    TOC that references the HTML code tag, but uses angle brackets in the

    * [Code Slides](#code-slides)
    * [`<code>`](#<code>)

    That #<code> is read as an actual code tag and the rest of the document
    is rendered as a code block, which can't be good for Marked's parser.
    The solution would be to rename that as `#codetag` and update the header
    to match.

    Still curious if Marked crashes if you set it to Discount (GFM) before
    attempting to open this file.


  3. Support Staff 3 Posted by Brett on 25 Apr, 2022 09:15 PM

    Brett's Avatar

    The angle brackets don't seem to cause the issue when using the Discount parser, which explains why you're not seeing it when it's rendered on GitHub. Discount must to a better job of encoding those entities.

  4. 4 Posted by Martin Packer on 01 May, 2022 12:06 PM

    Martin Packer's Avatar

    Thanks Brett. I'll see if I can avoid those angle brackets - perhaps by using entity references.

Reply to this discussion

Internal reply

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

Attaching KB article:


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


? 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