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

Non-empty blank lines in fenced code ignored when in lists #212

Open
wooorm opened this issue Feb 4, 2021 · 1 comment
Open

Non-empty blank lines in fenced code ignored when in lists #212

wooorm opened this issue Feb 4, 2021 · 1 comment
Labels

Comments

@wooorm
Copy link

wooorm commented Feb 4, 2021

Given that spaces and such in fenced code are represented in the output (https://spec.commonmark.org/0.29/#example-99), that should also be the case for fenced code in lists.

For (␠ represents a space in these examples):

- ```
␠␠␠␠
  ```

```
␠␠
```

Actual (removed lines) / expected (added lines):

 <ul>
 <li>
-<pre><code>
+<pre><code>␠␠
 </code></pre>
 </li>
 </ul>
 <pre><code>␠␠
 </code></pre>

See Dingus

@jgm
Copy link
Member

jgm commented Feb 5, 2021

I agree, this is a bug. cmark gives the right output.

@jgm jgm added the bug label Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants