Skip to content

Commit 89b9292

Browse files
committed
Update style-to-object
1 parent 1d6741f commit 89b9292

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,7 @@ function parseStyle(state, ancestors, value) {
611611
const result = {}
612612

613613
try {
614+
// @ts-expect-error: `style-to-object` types are broken.
614615
styleToObject(value, replacer)
615616
} catch (error) {
616617
if (!state.ignoreInvalidStyle) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"hast-util-whitespace": "^3.0.0",
4242
"property-information": "^6.0.0",
4343
"space-separated-tokens": "^2.0.0",
44-
"style-to-object": "^0.4.0",
44+
"style-to-object": "^1.0.0",
4545
"unist-util-position": "^5.0.0",
4646
"vfile-message": "^4.0.0"
4747
},

0 commit comments

Comments
 (0)