Github
Does Marked support Github Flavored Markdown? Thanks.
Larry McJunkin
Comments are currently closed for this discussion. You can start a new one.
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 11 Mar, 2014 12:50 PM
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.
-Brett
2 Posted by Larry McJunkin on 11 Mar, 2014 12:53 PM
Thanks, Brett.
Larry
3 Posted by mklement0 on 09 Jul, 2015 02:44 AM
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.
Support Staff 4 Posted by Brett on 09 Jul, 2015 02:49 AM
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 Posted by mklement0 on 09 Jul, 2015 03:06 AM
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.
Michael
Brett closed this discussion on 10 Jul, 2015 04:32 PM.