Github Flavored Markdown Not Supported

Joshua Griffith's Avatar

Joshua Griffith

02 Sep, 2012 07:43 AM

Github Flavored Markdown allows for code blocks in the following format:

```ruby
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
```

However, Marked both removes the block's line breaks and fails to highlight syntax properly.

  1. Support Staff 1 Posted by Brett on 02 Sep, 2012 05:21 PM

    Brett's Avatar

    Turn on fenced code block support in Behavior preferences.

  2. 2 Posted by Chuck on 27 Oct, 2012 03:47 AM

    Chuck's Avatar

    I concur with Joshua--I'm observing the same thing. I do have fenced code block support enabled.

    In addition, I'm seeing that the syntax definition ("ruby") is getting treated as part of the text block rather than an indicator of which syntax highlighting to use.

    I used the sample syntax in Joshua's original post as an example. The attached screenshots show the result and show what my settings look like.

  3. Support Staff 3 Posted by Brett on 08 Nov, 2012 05:19 PM

    Brett's Avatar

    Do me a favor and try adding a paragraph of text above and below the sample code you listed. On save it should create what you're looking for.

    This system has been improved for the next version, but what you're looking for should work in 1.4.

  4. 4 Posted by Chuck on 09 Nov, 2012 03:17 PM

    Chuck's Avatar

    Yes, that appears to work. Thanks for the tip.

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

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