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