Skip to content

Commit

Permalink
Update MediaWiki:Gadget-wikieditor-highlight.js (#403)
Browse files Browse the repository at this point in the history
根据用户反馈,不再默认启用highlightWhitespace扩展
  • Loading branch information
bhsd-harry authored Jan 19, 2024
1 parent 00a2a70 commit 05f2bdb
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@
cm.prefer([
"highlightSpecialChars",
"highlightActiveLine",
"highlightWhitespace",
"bracketMatching",
"closeBrackets",
]);
const [config] = await Promise.all([
libCachedCode.getCachedCode("https://testingcf.jsdelivr.net/npm/wikiparser-node/config/moegirl.json"),
cm.defaultLint(true, { include: ns === 10 }),
cm.defaultLint(true, { include: [2, 10, 828].includes(ns) }),
]);
try {
window.wikiparse?.setConfig(JSON.parse(config));
Expand Down

0 comments on commit 05f2bdb

Please sign in to comment.