From b066ffd8ecf03c2bf161342cf0a62cf79c216e6a Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 26 Jun 2023 19:01:10 +0200 Subject: [PATCH] Update `micromark` --- index.js | 16 ++++++++-------- package.json | 18 +++++++++--------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/index.js b/index.js index 1e5f93a..839e735 100644 --- a/index.js +++ b/index.js @@ -38,11 +38,11 @@ import { */ export function gfm(options) { return combineExtensions([ - gfmAutolinkLiteral, + gfmAutolinkLiteral(), gfmFootnote(), gfmStrikethrough(options), - gfmTable, - gfmTaskListItem + gfmTable(), + gfmTaskListItem() ]) } @@ -59,11 +59,11 @@ export function gfm(options) { */ export function gfmHtml(options) { return combineHtmlExtensions([ - gfmAutolinkLiteralHtml, + gfmAutolinkLiteralHtml(), gfmFootnoteHtml(options), - gfmStrikethroughHtml, - gfmTableHtml, - gfmTagfilterHtml, - gfmTaskListItemHtml + gfmStrikethroughHtml(), + gfmTableHtml(), + gfmTagfilterHtml(), + gfmTaskListItemHtml() ]) } diff --git a/package.json b/package.json index 46095ab..3ba062d 100644 --- a/package.json +++ b/package.json @@ -36,14 +36,14 @@ "index.js" ], "dependencies": { - "micromark-extension-gfm-autolink-literal": "^1.0.0", - "micromark-extension-gfm-footnote": "^1.0.0", - "micromark-extension-gfm-strikethrough": "^1.0.0", - "micromark-extension-gfm-table": "^1.0.0", - "micromark-extension-gfm-tagfilter": "^1.0.0", - "micromark-extension-gfm-task-list-item": "^1.0.0", - "micromark-util-combine-extensions": "^1.0.0", - "micromark-util-types": "^1.0.0" + "micromark-extension-gfm-autolink-literal": "^2.0.0", + "micromark-extension-gfm-footnote": "^2.0.0", + "micromark-extension-gfm-strikethrough": "^2.0.0", + "micromark-extension-gfm-table": "^2.0.0", + "micromark-extension-gfm-tagfilter": "^2.0.0", + "micromark-extension-gfm-task-list-item": "^2.0.0", + "micromark-util-combine-extensions": "^2.0.0", + "micromark-util-types": "^2.0.0" }, "devDependencies": { "@types/node": "^20.0.0", @@ -52,7 +52,7 @@ "hast-util-from-html": "^1.0.0", "hast-util-select": "^5.0.0", "hast-util-to-text": "^3.0.0", - "micromark": "^3.0.0", + "micromark": "^4.0.0", "prettier": "^2.0.0", "rehype": "^12.0.0", "rehype-sort-attributes": "^4.0.0",