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

Rules override for unsaved files #177

Closed
OldStarchy opened this issue Jul 15, 2021 · 2 comments
Closed

Rules override for unsaved files #177

OldStarchy opened this issue Jul 15, 2021 · 2 comments

Comments

@OldStarchy
Copy link

Feature request, kinda similar to #93, but not really.

I often open up temporary markdown editors to take notes on what I'm currently doing and make todo lists. In those cases, I want to disable rules like first-line-heading and single-trailing-newline, since I don't often have a heading for these "files" and the trailing newline normally gets added on save, which doesn't happen for an unsaved editor.

I could disable markdownlint with the command mentioned in #93 but I only want it to apply to the unsaved editor, and there are only a few rules I'd like to disable.

@PabloLION
Copy link

@OldStarchy, maybe you can use my current work-around: I set markdownlint.run to onSave

@DavidAnson
Copy link
Owner

I like that workaround for something that has only seemed to come up once in two years.

@DavidAnson DavidAnson closed this as not planned Won't fix, can't repro, duplicate, stale May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants