Github Flavored Markdown Not Supported
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.
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 02 Sep, 2012 05:21 PM
Turn on fenced code block support in Behavior preferences.
2 Posted by Chuck on 27 Oct, 2012 03:47 AM
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.
Support Staff 3 Posted by Brett on 08 Nov, 2012 05:19 PM
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 Posted by Chuck on 09 Nov, 2012 03:17 PM
Yes, that appears to work. Thanks for the tip.