Skip to content

Commit c35e7fb

Browse files
committed
Land 7124, Remove unwanted <ruby> tag while generating module doc code
2 parents 2493798 + 21f5da2 commit c35e7fb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/msf/util/document_generator/normalizer.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ module Render
66
class MsfMdHTML < Redcarpet::Render::HTML
77

88
def block_code(code, language)
9+
code = $1 if code =~ /^<ruby>(.+)<\/ruby>/m
10+
911
"<pre>" \
1012
"<code>#{code}</code>" \
1113
"</pre>"

0 commit comments

Comments
 (0)