Skip to content

Commit 4c5251f

Browse files
committed
Fix CodeFence with unintended Array for format
The rule ( !"`" Nonspacechar )+ for "format" variable becomes Array but #intern is called for "format" variable and it means "format" variable is expected as String, so this commit adds checking instance_of?(String).
1 parent c0ad153 commit 4c5251f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rdoc/markdown.kpeg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,7 @@ CodeFence = &{ github? }
11611161
@Newline
11621162
)+ > Ticks3 @Sp @Newline*
11631163
{ verbatim = RDoc::Markup::Verbatim.new text
1164-
verbatim.format = format.intern if format
1164+
verbatim.format = format.intern if format.instance_of?(String)
11651165
verbatim
11661166
}
11671167

0 commit comments

Comments
 (0)