Skip to content

Formatting over HTML comments crates newline between each comment #572

@jpmorris

Description

@jpmorris

Describe the bug

context

<!-- Space: MyGroup -->
<!-- Parent: parent-->
<!-- Parent: subparent-->
<!-- Title: title-->

To support https://github.com/kovetskiy/mark to send my markdown to confluence

expectation

<!-- Space: MyGroup -->
<!-- Parent: parent-->
<!-- Parent: subparent-->
<!-- Title: title-->

bug

<!-- Space: MyGroup -->

<!-- Parent: parent-->

<!-- Parent: subparent-->

<!-- Title: title-->

Reproduce the bug

printf -- '<!-- test -->\n<!-- test2 -->' | pipx run mdformat -

List your environment

 % mdformat --version
mdformat 1.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions