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

unexpected back tick (md2html vs cmark) #271

Open
step- opened this issue Sep 26, 2024 · 0 comments
Open

unexpected back tick (md2html vs cmark) #271

step- opened this issue Sep 26, 2024 · 0 comments

Comments

@step-
Copy link
Contributor

step- commented Sep 26, 2024

A list item combining spaced back ticks and hard break is parsed incorrectly. To reproduce:

cmark --version
cmark 0.31.1 - CommonMark converter
(C) 2014-2016 John MacFarlane
md2html --version
0.5.2

cat /tmp/t.md
(with two spaces after BR)

* `
  code
  ` BR  
  continuation

md2html --xhtml /tmp/t.md
(note the unexpected closing back tick)

<ul>
<li><code>code</code>
` BR<br />
continuation</li>
</ul>

cmark /tmp/t.md
(no closing back tick)

<ul>
<li><code>code</code> BR<br />
continuation</li>
</ul>
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