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

Odd indented code block can break paragraph #189

Closed
dbuenzli opened this issue Feb 15, 2023 · 1 comment
Closed

Odd indented code block can break paragraph #189

dbuenzli opened this issue Feb 15, 2023 · 1 comment

Comments

@dbuenzli
Copy link

and the spec says indented code blocks don't interrupt paragraphs

> md2html --version
0.4.8

> printf 'a\n    ```\nb' | md2html
<p>a</p>
<pre><code>b
</code></pre>

> printf 'a\n    ```\nb' | cmark  
<p>a
```
b</p>

Likely something fishy happening because the indented text looks like a fence: for example md2html passes this spec test, and it is correct if you only have two backticks or less.

@mity
Copy link
Owner

mity commented Jan 8, 2024

Same as #201, should be fixed.

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

No branches or pull requests

2 participants