当我尝试的时候
```ruby
puts "hello world"我得到了
<code>ruby<br>
print "hello world" <br></code>而不是获取<pre lang="ruby">
rails代码
options = [:hard_wrap, :filter_html, :autolink, :no_intraemphasis, :fenced_code, :gh_blockcode]
Redcarpet.new(text, *options).to_html 发布于 2011-09-23 03:18:45
FWIW:在代码块和前面的文本之间至少有一行间距
答案链接:http://railscasts.com/episodes/272-markdown-with-redcarpet?view=comments#comment_153061
https://stackoverflow.com/questions/6860718
复制相似问题