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

Incorrect HTML generated for escaped pipe inside a table cell #604

Open
kwin opened this issue Dec 29, 2023 · 0 comments
Open

Incorrect HTML generated for escaped pipe inside a table cell #604

kwin opened this issue Dec 29, 2023 · 0 comments

Comments

@kwin
Copy link

kwin commented Dec 29, 2023

Describe the bug

For the markdown leveraging GFM table extension as outlined in https://github.github.com/gfm/#example-200. the escaped pipe is not unescaped correctly.

To Reproduce

Just parse https://github.github.com/gfm/#example-200 and convert to HTML. What is emitted is

<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>

instead of

<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>

The escaped pipe character \| inside the code style is not properly unescaped.

This happens with flexmark 0.62.2

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