How to correctly convert code blocks with newlines? #1716
-
|
Hello, I'm having trouble correctly converting the following code block, i.e., with a newline at the beginning and the end: I'm trying to do this conversion using where If I run it using a code block without spaces, i.e., everything runs correctly. Alternatively, if I downgrade Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
|
I'm not sure why you are having issues. So I checked out the latest tag (9.4). Dropped your markdown into a ➜ 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? |
Beta Was this translation helpful? Give feedback.
I'm not sure why you are having issues. So I checked out the latest tag (9.4). Dropped your markdown into a
test.mdfile, and this is what I got:Can you elaborate on what you mean my it isn't working correctly?