-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Inconsistent heading levels with AsciiDoc output #10062
Comments
Asciidoc sections are not supposed to have gaps, e.g.
If you try this you'll get a warning like
So, we normalize them before writing. This is by design. Note: it seems that asciidoc (original) also required the first heading level to be |
Ah - I guess I see how it gets that way. There aren't gaps in the test vectors per se, but since Cell 1 (Markdown):
** Cell 2** (Code):
Cell 3 (Markdown)
will get converted as
There another issue with Its hard for me to figure out how to correctly use pandoc AsciiDoc output with Markdown fragments given the current behavior. If I export the whole notebook as Markdown first, I can use pandoc to convert that to AsciiDoc but I lose some other information. |
Due to changes in |
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 withnbconvert
, which executespandoc
on one Jupyter cell at a time.Also see: jupyter/nbconvert#1456
Pandoc version?
3.1.9 on MacOS
I also re-ran on 3.3 to confirm.
The text was updated successfully, but these errors were encountered: