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

feat: support markdownlint with standard input #664

Merged

Conversation

xudyang1
Copy link
Contributor

markdownlint supports standard input with option --stdin. Enabling standard input can help neovim update diagnostics for InsertLeave and TextChanged events.

@mfussenegger mfussenegger merged commit 968a35d into mfussenegger:master Sep 22, 2024
3 checks passed
@petobens
Copy link

Hey @xudyang1 does this actually work for you? See #469 (comment).

@xudyang1
Copy link
Contributor Author

xudyang1 commented Sep 26, 2024

Hey @xudyang1 does this actually work for you? See #469 (comment).

This pull request works for me. I think in #469 you need to configure the error format in order to parse the input error message correctly. You can do something similar to local efm = "stdin:%l:%c %m,stdin:%l %m" and https://github.com/mfussenegger/nvim-lint/blob/968a35d54b3a4c1ce66609cf80b14d4ae44fe77f/lua/lint/linters/markdownlint.lua#L9C1-L12C6

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

Successfully merging this pull request may close these issues.

3 participants