🐛 Fix: pangu adds extra spaces for extended Markdown syntax fraction in Chinese

This commit is contained in:
Cell
2024-11-03 00:28:29 +08:00
parent 85d91b8527
commit 41014f7f5b
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -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('.')) {