-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Use codetabs to label ESNext code as such #13781
Conversation
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.
Let's see how it looks in the handbook :)
I was thinking a bit more about https://www.npmjs.com/package/@wordpress/plugins https://github.com/WordPress/gutenberg/blob/master/packages/plugins/README.md Given that it is possible to use HTML tags and therefore comments, maybe we could come up with a syntax that would display properly everywhere? It might be challenging but it's worth exploring in my opinion. I know that @griffbrad was interesting in improving how we handle code snippets in our docs. |
Description
This PR tests using the {% codetabs %} markup to label an ESNext block of code as such, even without the alternative ES5 tab included.
There can be confusion on what type of code is being displayed/copied/pasted, so being able to label ESNext code as such will help people working in an ES5 only environment that there might be a potential for problems if they copy/paste the code as shown.
Types of changes
Documentation.