Skip to content

Whitespace around markdown link causes extra newlines to be added to code block #34

@nfelt14

Description

@nfelt14

If I add whitespace around the markdown link inside the xml comments (like mdformat does automatically), then an extra whitespace is added after each line in the code block.

Problem codeinclude block:

<!--codeinclude-->

[Human readable title for snippet](./relative_path_to_example_code.java) targeting_expression

<!--/codeinclude-->

This makes it impossible for me to use mdformat to format the entire rest of my markdown document because the code is littered with extra whitespaces if I use mdformat on the file.

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