upgrade katex to 0.12, wiki load

This commit is contained in:
undefined committed 2020-07-16 20:00:48 +08:00
1 parent 3b9910529e
commit bf29661eaa
18 files changed
+189 -54

No files matched your search

-3
View File
@@ -44,9 +44,6 @@ export async function load() {
const files = fs.readdirSync(moduleRoot);
for (const file of files) {
try {
// This fixs a mistake.
// Markdown-it-katex is not a hydro module but a dependency.
if (file === 'markdown-it-katex') continue;
const modulePath = path.join(moduleRoot, file);
const packagejson = path.join(modulePath, 'package.json');
if (fs.statSync(modulePath).isFile() && file.endsWith('.hydro')) {