Skip to content

markdown writer appends blank line at end of file #1705

@aaren

Description

@aaren

pandoc 1.13.1 adds a blank line to the end of text that does not already end in a blank line, i.e.

$ echo -ne "some text\n"
some text
$ echo -ne "some text\n" | pandoc --to markdown
some text

$
$ echo -ne "some text\n\n" | pandoc --to markdown
some text

$

Compared to the behaviour in e.g. 1.11.1, which is to strip all blank lines:

$ echo -ne "some text\n" | pandoc-1.11.1 --to markdown
some text
$
$ echo "some text\n\n" | pandoc-1.11.1 --to markdown
some text
$

I would like pandoc to respect my input and not add or remove blank lines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions