-
Notifications
You must be signed in to change notification settings - Fork 166
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
Indent code snippets using js-beautify
#5259
Conversation
c19aec6
to
9d1b383
Compare
Here's my initial implementation @bartaz @pastelcyborg - any thoughts? |
Honestly I think this is perfectly sufficient - simple, easy, will gracefully fail. The only change I might make would be to either document that the functions come from a global/window scope or actually reference |
@pastelcyborg Good call, updated this to reference |
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.
Looks great, thanks for adding this!
Done
Formats all HTML, JS, and CSS code shown in
pre
code snippet blocks using js-beautifyFixes #5245, WD-13629
QA
Check if PR is ready for release
If this PR contains Vanilla SCSS code changes, it should contain the following changes to make sure it's ready for the release:
Feature 🎁
,Breaking Change 💣
,Bug 🐛
,Documentation 📝
,Maintenance 🔨
.package.json
should be updated relative to the most recent release, following semver convention:Screenshots
Before
After