diff --git a/lib/rdoc/markdown.kpeg b/lib/rdoc/markdown.kpeg index dee0a9a7ad..84073ebe65 100644 --- a/lib/rdoc/markdown.kpeg +++ b/lib/rdoc/markdown.kpeg @@ -1209,8 +1209,7 @@ TableItem = "|" < (!"|" !@Newline .)+ > TableLine = TableColumn+:line "|" @Newline { line } TableColumn = "|" < ( "-"+ ":"? | ":" "-"* ) > - { - text.start_with?(":") ? :left : + { text.start_with?(":") ? :left : text.end_with?(":") ? :right : nil }