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

Code block with empty newline does not working #165

Closed
mizunashi-mana opened this issue Oct 30, 2018 · 2 comments
Closed

Code block with empty newline does not working #165

mizunashi-mana opened this issue Oct 30, 2018 · 2 comments

Comments

@mizunashi-mana
Copy link

Below text is not parsed correctly.

```
code block

included empty newline
```

Expect output:

<p><code>code block

included empty newline</code></p>

This code is valid with CommonMark: https://spec.commonmark.org/dingus/?text=%60%60%60%0Acode%20block%0A%0Aincluded%20empty%20newline%0A%60%60%60%0A

Actual output:

<p><code>`</code>
code block</p>
<p>included empty newline
<code>`</code></p>
@mizunashi-mana
Copy link
Author

Oh... sorry, I misunderstood.
Traditional markdown is not CommonMark and Traditional markdown does not support Fenced Code Block.
Therefore, this is true act.

@cebe
Copy link
Owner

cebe commented Nov 2, 2018

yeah, you need to use GithubMarkdown class for fenced code blocks.

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

2 participants