Remove unwanted <ruby> tag while generating module doc code
parent
df15eebdf8
commit
21f5da29d4
|
@ -6,6 +6,8 @@ module Redcarpet
|
|||
class MsfMdHTML < Redcarpet::Render::HTML
|
||||
|
||||
def block_code(code, language)
|
||||
code = $1 if code =~ /^<ruby>(.+)<\/ruby>/m
|
||||
|
||||
"<pre>" \
|
||||
"<code>#{code}</code>" \
|
||||
"</pre>"
|
||||
|
|
Loading…
Reference in New Issue