-
Notifications
You must be signed in to change notification settings - Fork 10
feat(lint-configs): Add markdownlint config. #45
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,37 @@ | ||||||||||||||||||
| config: | ||||||||||||||||||
| MD003: | ||||||||||||||||||
| style: "atx" | ||||||||||||||||||
| MD004: | ||||||||||||||||||
| style: "asterisk" | ||||||||||||||||||
| MD009: | ||||||||||||||||||
| list_item_empty_lines: true | ||||||||||||||||||
| strict: true | ||||||||||||||||||
| MD010: | ||||||||||||||||||
| code_blocks: false | ||||||||||||||||||
| spaces_per_tab: 4 | ||||||||||||||||||
| MD013: | ||||||||||||||||||
| line_length: 100 | ||||||||||||||||||
| stern: true | ||||||||||||||||||
| tables: false | ||||||||||||||||||
|
Comment on lines
+12
to
+15
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Typo in MD013 configuration key: use MD013:
line_length: 100
- stern: true
+ strict: true
tables: false📝 Committable suggestion
Suggested change
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's not a typo. MD0013 has a
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainAccording to the results from my web search:
@kirkrodrigues I double-checked the markdownlint documentation, and it appears that MD013 has a "strict" option but not a "stern" option. The official documentation only mentions "strict" as a valid configuration parameter. Could you please double-check or share your reference if you have different information? Citations: 🌐 Web query: 💡 Result: The Strict Mode
Stern Mode
Comparison of Modes
Both modes can be used to enforce different levels of line length control depending on the context. You can exclude specific elements like code blocks, tables, or headings from these rules by setting their respective parameters to Citations:
@kirkrodrigues You're absolutely right, and I apologize for my mistake! The MD013 rule does indeed have a
Your configuration using 🐰✨ (learning something new) ✏️ Learnings added
|
||||||||||||||||||
| MD024: | ||||||||||||||||||
| siblings_only: true | ||||||||||||||||||
|
|
||||||||||||||||||
| # `false` since we sometimes need to use HTML tags (e.g., in Mermaid diagrams, etc.). | ||||||||||||||||||
| MD033: false | ||||||||||||||||||
| MD035: | ||||||||||||||||||
| style: "---" | ||||||||||||||||||
| MD046: | ||||||||||||||||||
| style: "fenced" | ||||||||||||||||||
| MD048: | ||||||||||||||||||
| style: "backtick" | ||||||||||||||||||
| MD049: | ||||||||||||||||||
| # We choose an asterisk to avoid confusion when emphasizing text that includes underscores. | ||||||||||||||||||
| style: "asterisk" | ||||||||||||||||||
|
|
||||||||||||||||||
| # `false` since Sphinx validate links, and markdownlint doesn't support MyST-Parser's syntax for | ||||||||||||||||||
| # specifying explicit targets. | ||||||||||||||||||
| MD051: false | ||||||||||||||||||
| MD052: | ||||||||||||||||||
| shortcut_syntax: true | ||||||||||||||||||
| MD055: | ||||||||||||||||||
| style: "leading_and_trailing" | ||||||||||||||||||
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.
It appears that 'stern' might be a typo; consider using 'strict' for consistency with MD009 if that was intended.
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.
MD0013 has a
sternoption.