Skip to content

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

Open

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions