borismus / markdown-preview

Enables Chrome to render markdown files as HTML
http://smus.com
217 stars 42 forks source link

3-Backtick Support? #25

Open benhamill opened 11 years ago

benhamill commented 11 years ago

On Github, you can to <pre> tags with either indentation (standard Markdown) or with 3 backticks:

```ruby
def foo(bar)
  puts bar
end

renders

``` ruby
def foo(bar)
  puts bar
end

The plugin doesn't support that. I know that there are libraries out there that'll do it, but I'm not sure what languages are covered, etc. Is this something that would be good (to the maintainers, it would be good for me)?

benhamill commented 11 years ago

In fact, it looks like showdown already supports this? Might be misunderstanding it as I am not super comfortable with JS. For reference, the file I'm testing with is this one: https://github.com/contextio/contextio-ruby#readme The Examples section doesn't have the expected code block styles.