8000 --shift-heading-level-by=-1 doesn't promote the first H1 of djot input · Issue #10459 · jgm/pandoc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
--shift-heading-level-by=-1 doesn't pr 827E omote the first H1 of djot input #10459
Closed
@silby

Description

@silby

Explain the problem.

I get this:

$ pandoc -s --shift-heading-level-by=-1 -f djot -t native
# hi
^D
Pandoc
  Meta { unMeta = fromList [] }
  [ Div ( "hi" , [ "section" ] , [] ) [ Para [ Str "hi" ] ] ]

I expected it to match this, as documented:

$ pandoc -s --shift-heading-level-by=-1 -f markdown -t native
# hi
^D
Pandoc
  Meta
    { unMeta =
        fromList [ ( "title" , MetaInlines [ Str "hi" ] ) ]
    }
  []

Pandoc version?
pandoc 3.6 on OpenBSD -current

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