Skip to content

Markdown writer: First line of dt does not respect tab-stop option #10890

@jtojnar

Description

@jtojnar

Explain the problem.

Trying to convert the following to markdown with tab-stop=2:

[ DefinitionList
    [ ( [ Str "apple" ]
      , [ [ Para [ Str "pomaceous" ] , Para [ Str "fruit" ] ] ]
      )
    ]
]

will produce an inconsistently indented definition list definition:

apple
:   pomaceous

  fruit

As a result, the produced markdown will parse the paragraph outside the list:

[ DefinitionList
    [ ( [ Str "apple" ] , [ [ Plain [ Str "pomaceous" ] ] ] ) ]
, Para [ Str "fruit" ]
]

I can open PR later.

Pandoc version?

pandoc version 3.7.0.2 on try.pandoc.org

Using pandoc --from native --to markdown --no-highlight --tab-stop=2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions