-
Notifications
You must be signed in to change notification settings - Fork 141
Upgrade js-beautify and provide option to turn it off #1116
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
5200f08
862020f
cbb1456
ce5c514
4645919
b66571d
90a8220
cf529b6
703b237
bcff35d
47c9443
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -237,6 +237,7 @@ class Site { | |
| faviconUrl: config.faviconUrl, | ||
| frontmatter: config.frontmatter, | ||
| globalOverride: this.siteConfig.globalOverride || {}, | ||
| disableHtmlBeautify: this.siteConfig.disableHtmlBeautify, | ||
| pageTemplate: this.pageTemplate, | ||
| plugins: this.plugins || {}, | ||
| rootPath: this.rootPath, | ||
|
|
@@ -943,7 +944,7 @@ class Site { | |
| injectMarkdownItSpecialTags(tagsToIgnore); | ||
| Page.htmlBeautifyOptions = { | ||
| indent_size: 2, | ||
| content_unformatted: ['pre', ...tagsToIgnore], | ||
| content_unformatted: ['pre', 'textarea', ...tagsToIgnore], | ||
|
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. What's the rationale for adding this new
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. html beautify was updated with this as well since our last version; unfortunately the options don't merge with the defaults, so a little manual inspection has to be done here https://github.com/beautify-web/js-beautify/blob/master/js/src/html/options.js |
||
| }; | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.