Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tables with escaped pipes are not recognized #166

Closed
thyresias opened this issue Nov 20, 2021 · 1 comment
Closed

tables with escaped pipes are not recognized #166

thyresias opened this issue Nov 20, 2021 · 1 comment

Comments

@thyresias
Copy link

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>
@thyresias
Copy link
Author

thyresias commented Nov 20, 2021

Error: ruby translates \| to |, \\| is needed. My bad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant