File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -111,10 +111,10 @@ export default class Header extends ParagraphBase {
111
111
const replaceFootNote = / ~ f n # ( [ 0 - 9 ] + ) # / g;
112
112
anchorID = this . generateIDNoDup ( headerTextRaw . replace ( replaceFootNote , '' ) ) ;
113
113
}
114
- anchorID = `safe_${ anchorID } ` ; // transform header id to avoid being sanitized
114
+ const safeAnchorID = `safe_${ anchorID } ` ; // transform header id to avoid being sanitized
115
115
const sign = this . $engine . md5 ( `${ level } -${ processedText . sign } -${ anchorID } -${ dataLines } ` ) ;
116
116
const result = [
117
- `<h${ level } id="${ anchorID } " data-sign="${ sign } " data-lines="${ dataLines } ">` ,
117
+ `<h${ level } id="${ safeAnchorID } " data-sign="${ sign } " data-lines="${ dataLines } ">` ,
118
118
this . $getAnchor ( anchorID ) ,
119
119
`${ html } ` ,
120
120
`</h${ level } >` ,
You can’t perform that action at this time.
0 commit comments