Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

markdownlint-disable-next-line should apply to the next non-empty line #1219

Open
RebeccaStevens opened this issue May 19, 2024 · 1 comment
Labels

Comments

@RebeccaStevens
Copy link

Ideally this should work.

<!-- markdownlint-disable-next-line MD013 -->

Some really looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong line

Additional Context

Prettier will always insert an empty line after comments in markdown.

@DavidAnson
Copy link
Owner

If you ask me, Prettier shouldn't break stuff like this just for fun. The meaning of "next line" is pretty clear in my mind and if we start trying to redefine it to mean "next line with content but hey is white space content well I don't know just take a guess", I think that could get confusing. :)

The example you show is possible today with the following pattern shown in the README:

<!-- markdownlint-capture -->
<!-- markdownlint-disable MD013 -->

looong line

<!-- markdownlint-restore -->

I am not inclined to add more complexity for this scenario as it seems pretty niche.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants