File tree 2 files changed +6
-5
lines changed 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ import {normalizeIdentifier} from 'micromark-util-normalize-identifier'
93
93
import { codes } from 'micromark-util-symbol/codes.js'
94
94
import { constants } from 'micromark-util-symbol/constants.js'
95
95
import { types } from 'micromark-util-symbol/types.js'
96
- import { decodeEntity } from 'parse-entities/ decode-entity.js '
96
+ import { decodeNamedCharacterReference } from 'decode-named-character-reference '
97
97
import { stringifyPosition } from 'unist-util-stringify-position'
98
98
99
99
const own = { } . hasOwnProperty
@@ -953,9 +953,10 @@ function compiler(options = {}) {
953
953
)
954
954
setData ( 'characterReferenceType' )
955
955
} else {
956
- // @ts -expect-error `decodeEntity` can return false for invalid named
957
- // character references, but everything we’ve tokenized is valid.
958
- value = decodeEntity ( data )
956
+ // @ts -expect-error `decodeNamedCharacterReference` can return false for
957
+ // invalid named character references, but everything we’ve tokenized is
958
+ // valid.
959
+ value = decodeNamedCharacterReference ( data )
959
960
}
960
961
961
962
const tail = this . stack . pop ( )
Original file line number Diff line number Diff line change 43
43
"dependencies" : {
44
44
"@types/mdast" : " ^3.0.0" ,
45
45
"@types/unist" : " ^2.0.0" ,
46
+ "decode-named-character-reference" : " ^1.0.0" ,
46
47
"mdast-util-to-string" : " ^3.1.0" ,
47
48
"micromark" : " ^3.0.0" ,
48
49
"micromark-util-decode-numeric-character-reference" : " ^1.0.0" ,
49
50
"micromark-util-decode-string" : " ^1.0.0" ,
50
51
"micromark-util-normalize-identifier" : " ^1.0.0" ,
51
52
"micromark-util-symbol" : " ^1.0.0" ,
52
53
"micromark-util-types" : " ^1.0.0" ,
53
- "parse-entities" : " ^3.0.0" ,
54
54
"unist-util-stringify-position" : " ^3.0.0" ,
55
55
"uvu" : " ^0.5.0"
56
56
},
You can’t perform that action at this time.
0 commit comments