We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2a20c9f + 07492e9 commit 1ae47bbCopy full SHA for 1ae47bb
lib/rdoc/markdown.kpeg
@@ -1161,7 +1161,7 @@ CodeFence = &{ github? }
1161
@Newline
1162
)+ > Ticks3 @Sp @Newline*
1163
{ verbatim = RDoc::Markup::Verbatim.new text
1164
- verbatim.format = format.intern if format
+ verbatim.format = format.intern if format.instance_of?(String)
1165
verbatim
1166
}
1167
test/test_rdoc_markdown.rb
@@ -973,6 +973,14 @@ def test_strong
973
assert_equal '<b>_emphasis_</b>', @parser.strong('_emphasis_')
974
end
975
976
+ def test_code_fence_with_unintended_array
977
+ doc = parse '```<ruby>```'
978
+
979
+ expected = doc(verb('<ruby>'))
980
981
+ assert_equal expected, doc
982
+ end
983
984
def parse text
985
@parser.parse text
986
0 commit comments