Skip to content

Commit

Permalink
🐛 Fix: pangu adds extra spaces for extended Markdown syntax fraction …
Browse files Browse the repository at this point in the history
…in Chinese
  • Loading branch information
Lruihao committed Nov 2, 2024
1 parent 85d91b8 commit 41014f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions assets/js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,8 @@ class FixIt {
}
const selector = this.config.pangu.selector;
if (selector) {
// to avoid extra spaces for extended Markdown syntax fraction in Chinese
pangu.ignoredTags = /^(script|code|pre|textarea|sup|sub)$/i;
if (selector.startsWith('#')) {
pangu.spacingElementById(selector.slice(1));
} else if (selector.startsWith('.')) {
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/init/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- .Scratch.Set "version" "v0.3.14-894c512b" -}}
{{- .Scratch.Set "version" "v0.3.14-85d91b85" -}}
{{- .Scratch.Set "this" dict -}}

{{- partial "init/detection-env.html" . -}}
Expand Down

0 comments on commit 41014f7

Please sign in to comment.