Yohei-Shiina 3 lat temu
rodzic
commit
525b99ec0c
1 zmienionych plików z 7 dodań i 5 usunięć
  1. 7 5
      packages/app/src/services/renderer/renderer.tsx

+ 7 - 5
packages/app/src/services/renderer/renderer.tsx

@@ -331,11 +331,6 @@ export const generateViewOptions = (
   rehypePlugins.push(
     slug,
     [lsxGrowiPlugin.rehypePlugin, { pagePath }],
-    katex,
-    [toc.rehypePluginStore, { storeTocNode }],
-    // [autoLinkHeadings, {
-    //   behavior: 'append',
-    // }]
   );
   if (config.isEnabledXssPrevention) {
     rehypePlugins.push(
@@ -345,6 +340,13 @@ export const generateViewOptions = (
       )],
     );
   }
+  rehypePlugins.push(
+    katex,
+    [toc.rehypePluginStore, { storeTocNode }],
+    // [autoLinkHeadings, {
+    //   behavior: 'append',
+    // }]
+  );
 
   // add components
   if (components != null) {