From 0d7e30fbcc5cec69216c4ec6133baab127116c71 Mon Sep 17 00:00:00 2001 From: Mark Date: Thu, 30 Nov 2023 22:03:18 -0500 Subject: [PATCH 1/2] Update `style-to-object` Relates to https://github.com/remarkablemark/style-to-object/issues/205 --- lib/index.js | 1 - package.json | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index 9bd8ed0..2a1b093 100644 --- a/lib/index.js +++ b/lib/index.js @@ -894,7 +894,6 @@ function parseStyle(state, value) { const result = {} try { - // @ts-expect-error: `style-to-object` types are broken. styleToObject(value, replacer) } catch (error) { if (!state.ignoreInvalidStyle) { diff --git a/package.json b/package.json index 2c2d5e7..41b77b4 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "mdast-util-mdxjs-esm": "^2.0.0", "property-information": "^6.0.0", "space-separated-tokens": "^2.0.0", - "style-to-object": "^1.0.0", + "style-to-object": "^1.0.5", "unist-util-position": "^5.0.0", "vfile-message": "^4.0.0" }, From b8da42762de1de7ba09736ea798c0a8376870f71 Mon Sep 17 00:00:00 2001 From: Mark Date: Thu, 30 Nov 2023 22:54:10 -0500 Subject: [PATCH 2/2] Update `style-to-object` Co-authored-by: Christian Murphy Signed-off-by: Mark --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 41b77b4..2c2d5e7 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "mdast-util-mdxjs-esm": "^2.0.0", "property-information": "^6.0.0", "space-separated-tokens": "^2.0.0", - "style-to-object": "^1.0.5", + "style-to-object": "^1.0.0", "unist-util-position": "^5.0.0", "vfile-message": "^4.0.0" },