-
Notifications
You must be signed in to change notification settings - Fork 0
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
Warning is not showing up? #2
Comments
I’m not sure what use case you were referring to. I’m assuming regarding to mdast-lint-sentence-newline? I ran your example and it was ignored because HTML needs an extra black line after it: The following is just two HTML blocks: <!-- Invalid -->
Hello, world. This sentence should be on a second line.
<!-- Valid -->
Hello, world.
This sentence should be on a second line. But this is HTML comments and text: <!-- Invalid -->
Hello, world. This sentence should be on a second line.
<!-- Valid -->
Hello, world.
This sentence should be on a second line. The last one is warned about about: |
@wooorm Sorry for not being clearer - yes, I am talking about my custom rule. And, ah, I didn't know about the HTML comments thing, thanks. Just pushed a commit that fixes the example. But there's another test case where what I mentioned above is still happening - let me come back with a test case to show you. |
Fuck, I'm too tired - I'll ping you tomorrow. Thanks for your help. |
Sure! |
@wooorm I'm writing tests - can I get some more help? According to the https://github.com/chcokr/mdast-lint-sentence-newline/blob/master/test/test.js#L26 |
|
Ah, thanks! Yes, from here: https://github.com/wooorm/mdast-lint/blob/master/doc/api.md Looks like it needs to be fixed over there! |
on it |
Refer to `vfile` for more up-to-date docs. Related: why-jay/remark-lint-sentence-newline#2
@wooorm Thanks, you the man. Alright, so I just added my mysterious test case. It's actually not mysterious any more - I know why it's breaking. When there's a header, https://github.com/chcokr/mdast-lint-sentence-newline/blob/master/test/header-body/file.md |
Shouldn’t the |
Yup, changing that fixed your tests. |
Ah, silly me! Closed via 4c302fd. Thank you so much for all your work - |
I've seen cases where the file.warn is reached but at the end of the linting I don't see any yellow warnings from this rule on the CLI.
@wooorm Could you do me a favor and see if there is more than what I did in the code in order to render a warning on the CLI?
The text was updated successfully, but these errors were encountered: