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