Closed thyresias closed 2 years ago
According to GitHub Flavored Markdown Spec example 200:
| f\|oo | | ------ | | b `\|` az | | b **\|** im |
should render as
<table> <thead> <tr> <th>f|oo</th> </tr> </thead> <tbody> <tr> <td>b <code>|</code> az</td> </tr> <tr> <td>b <strong>|</strong> im</td> </tr> </tbody> </table>
But:
puts CommonMarker.render_html(<<~MD, %i(DEFAULT), %i(table)) | f\|oo | | ------ | | b `\|` az | | b **\|** im | MD
results in:
<p>| f|oo | | ------ | | b <code>|</code> az | | b <strong>|</strong> im |</p>
Error: ruby translates \| to |, \\| is needed. My bad.
According to GitHub Flavored Markdown Spec example 200:
should render as
But:
results in: