8000 Inconsistent heading levels with AsciiDoc output · Issue #10062 · jgm/pandoc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Inconsistent heading levels with AsciiDoc output #10062
Closed
@jeffmelville

Description

@jeffmelville

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0