-
When using fenced codeblocks I'm seeing newline characters get stripped from my codeblocks and the codeblock is wrapped in a FencedExample codeblock:
Pandoc (json serialized) AST:
Space IndentedExample codebloack:
Pandoc (json serialized) AST:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Gives correct output for me (pandoc 3.6 Windows). Only way I could reproduce your first output was using this as input:
ie using only one tick, which would be a Para with an inline Code. |
Beta Was this translation helpful? Give feedback.
-
I can't reproduce what you're reporting. Use https://pandoc.org/try and get a permalink if you can reproduce there. |
Beta Was this translation helpful? Give feedback.
-
I'm using pandoc as a library. This is the exact snippet I used to generate the code:
Here is the input
and here is the Pandoc AST
This is with EDIT: Same results with |
Beta Was this translation helpful? Give feedback.
-
Check the documentations for the extensions you're using: |
Beta Was this translation helpful? Give feedback.
Check the documentations for the extensions you're using:
https://pandoc.org/MANUAL.html#extension-fenced_code_blocks
The
fenced_code_blocks
extension is for tilde-fenced code blocks (a pandoc innovation that predates GFM style fenced code blocks). You wantbacktick_code_blocks
.