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

New line in code block breaks them #579

Closed
IncandescentChrysalis opened this issue May 24, 2024 · 1 comment
Closed

New line in code block breaks them #579

IncandescentChrysalis opened this issue May 24, 2024 · 1 comment

Comments

@IncandescentChrysalis
Copy link

Describe the bug
Code blocks containing new lines are not recognised as such.

To Reproduce

```
<my code>

<Test>
```

Observed behavior

<p>```
<my code></p>

<p><Test>
```</p>

Expected behavior

<p><code>
&lt;my code&gt;

&lt;Test&gt;
</code></p>

Debug info
Version of library being used:

  • markdown2==2.4.13

Additional context
The same block without new line:

```
<my code>
<Test>
```

works fine:

<p><code>
&lt;my code&gt;
&lt;Test&gt;
</code></p>
@IncandescentChrysalis
Copy link
Author

Resolved by using the fenced-code-blocks extra.

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