dprint/dprint-plugin-markdown

Ignore file directive works in the whole file

bartlomieju opened this issue · 2 comments

When working on a blog post @lucacasonato discovered that ignore directive for the file (in our case deno-fmt-ignore-file) makes dprint to ignore file if it's placed anywhere in the file.

Ideally this directive should only have effect if it's placed on the first line.

@bartlomieju oops... looks like I forgot an ^ in the regex.

let text = format!(r"\s*<!\-\-\s*{}\s*\-\->\s*", inner_text);

Will fix this later.

No problem, thank you!