Skip to content

Bug: Ignore comments not respected. #123

Open
@marvinhagemeister

Description

@marvinhagemeister

Describe the bug

The formatting ignore comments don't seem to work inside markdown

dprint-plugin-markdown version: x.x.x
deno 2.0.0-rc.0+42cf762

Input Code

<!-- dprint-ignore-start -->
```md
# Heading 1
## Heading 2

Heading 1
=======

Heading 2
------------
```
<!-- dprint-ignore-end -->

Expected Output

<!-- dprint-ignore-start -->
```md
# Heading 1
## Heading 2

Heading 1
=======

Heading 2
------------
```
<!-- dprint-ignore-end -->

Actual Output

<!-- dprint-ignore-start -->
```md
# Heading 1
## Heading 2

# Heading 1

## Heading 2
```
<!-- dprint-ignore-end -->

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