Skip to content

How to correctly convert code blocks with newlines? #1716

Answered by facelessuser
leakec asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure why you are having issues. So I checked out the latest tag (9.4). Dropped your markdown into a test.md file, and this is what I got:

pymdown-extensions git:(72390ce2) ✗ python3 -m markdown -x pymdownx.extra example.md
<div class="highlight"><pre><span></span><code>code-block
</code></pre></div>%

Can you elaborate on what you mean my it isn't working correctly?

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@facelessuser
Comment options

@leakec
Comment options

@leakec
Comment options

@facelessuser
Comment options

@leakec
Comment options

Answer selected by facelessuser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants