Skip to content

Commit

Permalink
Fix webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Nov 22, 2021
1 parent 4b01c3f commit b9cfde0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions dev/lib/index.js
Expand Up @@ -93,7 +93,7 @@ import {normalizeIdentifier} from 'micromark-util-normalize-identifier'
import {codes} from 'micromark-util-symbol/codes.js'
import {constants} from 'micromark-util-symbol/constants.js'
import {types} from 'micromark-util-symbol/types.js'
import {decodeEntity} from 'parse-entities/decode-entity.js'
import {decodeNamedCharacterReference} from 'decode-named-character-reference'
import {stringifyPosition} from 'unist-util-stringify-position'

const own = {}.hasOwnProperty
Expand Down Expand Up @@ -953,9 +953,10 @@ function compiler(options = {}) {
)
setData('characterReferenceType')
} else {
// @ts-expect-error `decodeEntity` can return false for invalid named
// character references, but everything we’ve tokenized is valid.
value = decodeEntity(data)
// @ts-expect-error `decodeNamedCharacterReference` can return false for
// invalid named character references, but everything we’ve tokenized is
// valid.
value = decodeNamedCharacterReference(data)
}

const tail = this.stack.pop()
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -43,14 +43,14 @@
"dependencies": {
"@types/mdast": "^3.0.0",
"@types/unist": "^2.0.0",
"decode-named-character-reference": "^1.0.0",
"mdast-util-to-string": "^3.1.0",
"micromark": "^3.0.0",
"micromark-util-decode-numeric-character-reference": "^1.0.0",
"micromark-util-decode-string": "^1.0.0",
"micromark-util-normalize-identifier": "^1.0.0",
"micromark-util-symbol": "^1.0.0",
"micromark-util-types": "^1.0.0",
"parse-entities": "^3.0.0",
"unist-util-stringify-position": "^3.0.0",
"uvu": "^0.5.0"
},
Expand Down

0 comments on commit b9cfde0

Please sign in to comment.