Closed
Description
When converting fragments to AsciiDoc, heading levels are not converted consistently. It appears that the lowest level heading always gets converted to ===
in AsiiDoc. See example below. In both examples, I would expect ### third
to convert to === third
. The issue occurs when exporting with nbconvert
, which executes pandoc
on one Jupyter cell at a time.
Also see: jupyter/nbconvert#1456
➜ ~ pandoc --version
pandoc 3.1.9
Features: +server +lua
Scripting engine: Lua 5.4
User data directory: /Users/jmelville/.local/share/pandoc
Copyright (C) 2006-2023 John MacFarlane. Web: https://pandoc.org
This is free software; see the source for copying conditions. There is no
warranty, not even for merchantability or fitness for a particular purpose.
➜ ~ echo -e '### third\n' | pandoc -t asciidoc
== third
➜ ~ echo -e '## second\n### third\n' | pandoc -t asciidoc
== second
=== third
Pandoc version?
3.1.9 on MacOS
I also re-ran on 3.3 to confirm.