Skip to content

docs(Configuration): fix lang for code block #6458

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

Merged
merged 1 commit into from
Oct 16, 2022

Conversation

chenxsan
Copy link
Member

@chenxsan chenxsan commented Oct 16, 2022

There's no console language for code block https://github.com/wooorm/refractor#data

@vercel
Copy link

vercel bot commented Oct 16, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
webpack-js-org ✅ Ready (Inspect) Visit Preview Oct 16, 2022 at 2:04AM (UTC)

Copy link
Member

@snitin315 snitin315 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Can we throw lint errors for such errors?

@chenxsan
Copy link
Member Author

LGTM. Can we throw lint errors for such errors?

Really good idea. There's a rule https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md040 requiring us to specify a language for code block, unfortunately we can't specify which languages to be included. But I think it could be feasible with a custom rule. I'll try it later.

@chenxsan chenxsan merged commit 63bb67f into webpack:master Oct 16, 2022
@chenxsan chenxsan deleted the bugfix/fix-lang branch October 16, 2022 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants