-
Notifications
You must be signed in to change notification settings - Fork 749
feat: enforce markdown formatting on save #6969
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
4f72213 to
aeb107f
Compare
for more information, see https://pre-commit.ci
| @@ -0,0 +1,48 @@ | |||
| # MF007: markdown-dedent | |||
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 wonder if the rule should be markdown-indentation since it captures more than dedent. but if this is internal, we can change the name whenever
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.
nice, great stuff!
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.
This PR is being reviewed by Cursor Bugbot
Details
You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
| return { | ||
| code: `${start}${escapedCode}"""\n)`, | ||
| offset: start.length, | ||
| }; |
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.
|
|
||
| if not notebook_cell: | ||
| return | ||
|
|
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.
Fixes #6458
📝 Summary
Adds lint rule and codegen change that enforces markdown dedent.
Following front end convention, the following markdown is expected:
note: This is a noisy PR since examples are formatted. Look at commits standalone:
test: Add in tests for md check
feat: Add markdown tidy rule and auto formatting
tidy: refresh examples
docs: update documentation rules