File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 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'
9393import { codes } from 'micromark-util-symbol/codes.js'
9494import { constants } from 'micromark-util-symbol/constants.js'
9595import { types } from 'micromark-util-symbol/types.js'
96- import { decodeEntity } from 'parse-entities/ decode-entity.js '
96+ import { decodeNamedCharacterReference } from 'decode-named-character-reference '
9797import { stringifyPosition } from 'unist-util-stringify-position'
9898
9999const own = { } . hasOwnProperty
@@ -953,9 +953,10 @@ function compiler(options = {}) {
953953 )
954954 setData ( 'characterReferenceType' )
955955 } 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 )
959960 }
960961
961962 const tail = this . stack . pop ( )
Original file line number Diff line number Diff line change 4343 "dependencies" : {
4444 "@types/mdast" : " ^3.0.0" ,
4545 "@types/unist" : " ^2.0.0" ,
46+ "decode-named-character-reference" : " ^1.0.0" ,
4647 "mdast-util-to-string" : " ^3.1.0" ,
4748 "micromark" : " ^3.0.0" ,
4849 "micromark-util-decode-numeric-character-reference" : " ^1.0.0" ,
4950 "micromark-util-decode-string" : " ^1.0.0" ,
5051 "micromark-util-normalize-identifier" : " ^1.0.0" ,
5152 "micromark-util-symbol" : " ^1.0.0" ,
5253 "micromark-util-types" : " ^1.0.0" ,
53- "parse-entities" : " ^3.0.0" ,
5454 "unist-util-stringify-position" : " ^3.0.0" ,
5555 "uvu" : " ^0.5.0"
5656 },
You can’t perform that action at this time.
0 commit comments