Skip to content

Commit

Permalink
refactor: remove the fork of mdast-util-gfm-autolink-literal (#1150)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocavue authored Oct 21, 2022
1 parent d0c7f65 commit d4a3ba5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 257 deletions.
1 change: 0 additions & 1 deletion .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,4 @@ ignorePatterns:
- .dist/
- dist/
- out/
- "*.fork.*"

3 changes: 0 additions & 3 deletions packages/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,14 @@
"@remirror/react-core": "^2.0.7",
"@remirror/styles": "^2.0.1",
"@rino.app/common": "^0.44.0",
"ccount": "^2.0.1",
"clsx": "^1.2.1",
"lodash-es": "^4.17.21",
"markdown-it": "^13.0.1",
"mdast-util-find-and-replace": "^2.2.1",
"mdast-util-from-markdown": "^1.2.0",
"mdast-util-gfm-autolink-literal": "^1.0.2",
"mdast-util-gfm-strikethrough": "^1.0.1",
"micromark-extension-gfm-autolink-literal": "^1.0.3",
"micromark-extension-gfm-strikethrough": "^1.0.4",
"micromark-util-character": "^1.1.0",
"prosemirror-tables": "^1.2.5",
"prosemirror-view": "^1.29.0",
"remirror": "^2.0.11",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@
import type mdast from "mdast"
import type { Options as FromMarkdownOptions } from "mdast-util-from-markdown"
import { fromMarkdown } from "mdast-util-from-markdown"
import { gfmAutolinkLiteralFromMarkdown } from "mdast-util-gfm-autolink-literal"
import { gfmStrikethroughFromMarkdown } from "mdast-util-gfm-strikethrough"
import { gfmAutolinkLiteral } from "micromark-extension-gfm-autolink-literal"
import { gfmStrikethrough } from "micromark-extension-gfm-strikethrough"

import type { RinoMarkName } from "./inline-mark-extensions"
import type { InlineToken } from "./inline-types"
import { gfmAutolinkLiteralFromMarkdown } from "./mdast-util-gfm-autolink-literal.fork.mjs"

// disable autolink transforms as a workaround for https://github.com/syntax-tree/mdast-util-gfm-autolink-literal/issues/6
//
// See also https://github.com/remarkjs/remark-gfm/issues/16#issuecomment-846357030
gfmAutolinkLiteralFromMarkdown.transforms = []

function fixMarkNames(marks: RinoMarkName[]): RinoMarkName[] {
if (marks.length <= 1) return marks
Expand Down

This file was deleted.

6 changes: 0 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d4a3ba5

Please sign in to comment.