Skip to content

Plain writer lacks support for four_space_rule extension #10812

@m000

Description

@m000

The fix for #7172 (first included in pandoc 3.6.4) also affects the output of markdown -> plain transformation. Because +four_space_rule is not supported by the Plain writer, it is not possible to emulate the output of previous pandoc versions.

A markdown -> plain transformation is useful e.g. for pretty-formatting git messages in a pre-commit hook. In such uses, the new behaviour of pandoc introduces a change in the formatting of the messages which currently cannot be avoided.

Command:

pandoc -f markdown -t plain+four_space_rule

Input:

This is the title

Here we fix:

- a
- b
- c

Output:

This is the title

Here we fix:

- a
- b
- c

Expected output:

This is the title

Here we fix:

-   a
-   b
-   c

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions