sirthias / pegdown

A pure-Java Markdown processor based on a parboiled PEG parser supporting a number of extensions
http://pegdown.org
Apache License 2.0
1.29k stars 218 forks source link

language specification in fenced code blocks #122

Open wedens opened 10 years ago

wedens commented 10 years ago

GFM has support for specifying language:

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

and it renders it to

<pre><code class="ruby">require &#39;redcarpet&#39;
markdown = Redcarpet.new(&quot;Hello World!&quot;)
puts markdown.to_html
</code></pre>

How can i implement this behaviour with pegdown? What I want is this class="ruby" inside code tag.

wedens commented 10 years ago

found #20 issue can be closed