reiji-h 2 лет назад
Родитель
Сommit
2899adf5fe
1 измененных файлов с 2 добавлено и 4 удалено
  1. 2 4
      apps/app/src/services/renderer/remark-plugins/slides.ts

+ 2 - 4
apps/app/src/services/renderer/remark-plugins/slides.ts

@@ -1,7 +1,5 @@
 import type { Schema as SanitizeOption } from 'hast-util-sanitize';
 import type { Root } from 'mdast';
-import { frontmatterToMarkdown } from 'mdast-util-frontmatter';
-import { gfmToMarkdown } from 'mdast-util-gfm';
 import { toMarkdown } from 'mdast-util-to-markdown';
 import type { Plugin } from 'unified';
 import type { Node } from 'unist';
@@ -42,8 +40,8 @@ const rewriteNode = (tree: Node, node: Node) => {
       marp: marp ? 'marp' : '',
       children: toMarkdown(tree as Root, {
         extensions: [
-          frontmatterToMarkdown(['yaml']),
-          gfmToMarkdown(),
+          // frontmatterToMarkdown(['yaml']),
+          // gfmToMarkdown(),
           // TODO: add new extension remark-growi-directive to markdown
           // https://redmine.weseek.co.jp/issues/126660
         ],