Skip to content

Commit 49a6b09

Browse files
fix: strikethrough support in the importer (#392)
Fixes #178
1 parent bcbf22a commit 49a6b09

9 files changed

Lines changed: 608 additions & 35 deletions

File tree

nx/deps/mdast/dist/index.js

Lines changed: 35 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nx/deps/mdast/src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { unified } from 'unified';
22
import remarkParse from 'remark-parse';
33
import remarkGridTable from '@adobe/remark-gridtables';
4+
import { remarkGfmNoLink } from '@adobe/helix-markdown-support';
45
import { toHast as mdast2hast, defaultHandlers } from 'mdast-util-to-hast';
56
import { raw } from 'hast-util-raw';
67
import { mdast2hastGridTablesHandler } from '@adobe/mdast-util-gridtables';
@@ -11,6 +12,7 @@ export {
1112
mdast2hast,
1213
mdast2hastGridTablesHandler,
1314
raw,
15+
remarkGfmNoLink,
1416
remarkParse,
1517
remarkGridTable,
1618
toHtml,

nx/utils/converters.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {
22
unified,
33
remarkParse,
4+
remarkGfmNoLink,
45
remarkGridTable,
56
toHtml,
67
mdast2hast,
@@ -144,6 +145,7 @@ export function mdToDocDom(md) {
144145
// convert to mdast
145146
const mdast = unified()
146147
.use(remarkParse)
148+
.use(remarkGfmNoLink)
147149
.use(remarkGridTable)
148150
.parse(converted);
149151

0 commit comments

Comments
 (0)