's Avatar


11 Mar, 2014 03:40 AM

Does Marked support Github Flavored Markdown? Thanks.

Larry McJunkin

  1. Support Staff 1 Posted by Brett on 11 Mar, 2014 12:50 PM

    Brett's Avatar

    Yes, for the most part. It uses a different processor than GitHub does,
    but has accommodations for preserving line breaks, fenced code blocks
    with highlighting and other features of GFM. There are some minor
    differences, but for everyday README previewing it does a great job.


  2. 2 Posted by Larry McJunkin on 11 Mar, 2014 12:53 PM

    Larry McJunkin's Avatar

    Thanks, Brett.


  3. 3 Posted by mklement0 on 09 Jul, 2015 02:44 AM

    mklement0's Avatar

    There's an important aberration that is hopefully easy to fix:

    On GitHub, a fenced code block with NO language specification (just "~~~") results in NO syntax highlighting, while Marked 2 appears to apply highlighting nevertheless.

  4. Support Staff 4 Posted by Brett on 09 Jul, 2015 02:49 AM

    Brett's Avatar

    If no language is specified, Marked (using highlight.js) attempts to
    guess the language. You can use "nohighlight" as a language to _not_
    highlight specific blocks.

  5. 5 Posted by mklement0 on 09 Jul, 2015 03:06 AM

    mklement0's Avatar

    Thanks, Brett, that's good to know.

    I guess I got lucky so far that highlight.js has worked as expected for me even with NO language specified - and whatever you use seems to guess differently.

    However, the discrepancy is easily resolved by using 'nohighlight', which I'll do from now on.

    Thanks for a great app.


  6. Brett closed this discussion on 10 Jul, 2015 04:32 PM.

Comments are currently closed for this discussion. You can start a new one.

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