-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Introduce markdownlint #864 #2846
Conversation
No more findings on this branch. We will keep this comment up-to-date as you go along and notify you of any security issues that we identify. Happy with the results? Give your feedback. |
browser/components/CodeEditor.js
Outdated
'getAnnotations': validatorOfMarkdown, | ||
'async': true | ||
}, | ||
mode: 'markdown', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't use markdown
mode here. We set the mode according to the props or self-detecting language result if the CodeEditor is used in snippet note.
https://github.com/BoostIO/Boostnote/blob/885f656d3458af090c62f81b4f8a1c775effcdc6/browser/components/CodeEditor.js#L357-L361
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understood.
I fixed it. Please check it again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took a mistake.
CodeEditor in Snippet Note was linted in all languages by markdownlint.
This fix is for Snippet Note.
So I added a logic to check Snippet Note using Markdown and Markdown Note.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
@Rokt33r do we need a setting for this? |
@ZeroX-DG I think so. 😄 |
We need writing But probably I can't do it for a while. And if Implementing markdownlint settings includes this PR, I think it is difficult to test because the coverage is too wide. |
@roottool Could you resolve the conflicts? |
@Rokt33r Sure! I resolved the conflicts. |
How do you disable this? |
It would be great to get those preferences. I find the it distracting to see the errors for things I do not care about for my purposes, such as using hard tabs or line length. And it seems to be on by default and not able to be disabled? I don't think it would have expanded the scope too much to just have a stub on-off toggle in preferences until the full lint-preferences section was ready. |
This feature bothers me a lot, how can I disable it? :) Thanks |
In the same boat... did not expect this change and it's really annoying with seemingly no easy way to disable it. |
I just got the fresh update and this feature is F^#$ing annoying. And there is not option to switch off!!!! I am almost exclusively using the editor mode and those warnings are sh@#t. |
roottool: It's not fun to get negative feedback on a feature. I want to thank you for contributing to the Boostnote product. This feature, once more mature, will be one that I will use and enjoy. I thought I would take a minute to expand on my pervious comment with my thoughts after using this for a day. Here's what I think would make this feature prime-time for me:
Again, I appreciate shipping software, and I understand that you're contributing to this project because you want to, not because you have to. You try to do something nice for people, and users like me yell at you. Sorry about that. I look forward to your next iteration. |
Any way to disable? Or if not, is there an easy way to roll back my version? |
Hi @roottool, Thanks for your work on this, I'm pretty sure hearing complaints about your opensource contributions sucks, please consider this as constructive feedback. It's probably nice to have a markdown linter for many cases but for my use case, it somewhat breaks all the fun I have with boostnote. I tend to store a lot of logs under a code snippet, now it throws a bunch of linter exceptions. I actually don't care about the markdown linting on this case. It'd be great if we can have a toggle in preferences to disable linting. Also, I noticed linting makes the switch between editor mode and preview mode a lot slower. For people who have similar problems, I rolled back to the previous version manually by installing it from here; |
It looks like the latest update to Boostnote no longer has this feature enabled by default. If you liked it, you can go to Preferences -> Interface -> Enable MarkdownLint. I would like to take the time to say thank you for building this, even if I didn't like it - as an optional feature I think it's great. I think making it opt-in by default was a great decision too. |
Description
I introduced markdownlint in Boostnote.
Note
This feature checks all rules and aliases.
I didn't implement ignore settings on purpose.
Because I think that it will exceed the range dealt with in #864.
Issue fixed
#864
Type of changes
Checklist: