@@ -4,29 +4,29 @@ import { slugify } from './slugify';
4
4
export const headingCompiler = ( { renderer, router, _self } ) =>
5
5
( renderer . code = ( text , level ) => {
6
6
let { str, config } = getAndRemoveConfig ( text ) ;
7
- const nextToc = { level, title : str } ;
7
+ const nextToc = { level, title : removeAtag ( str ) } ;
8
8
9
9
if ( / < ! - - { docsify-i g n o r e } - - > / g. test ( str ) ) {
10
10
str = str . replace ( '<!-- {docsify-ignore} -->' , '' ) ;
11
- nextToc . title = str ;
11
+ nextToc . title = removeAtag ( str ) ;
12
12
nextToc . ignoreSubHeading = true ;
13
13
}
14
14
15
15
if ( / { d o c s i f y - i g n o r e } / g. test ( str ) ) {
16
16
str = str . replace ( '{docsify-ignore}' , '' ) ;
17
- nextToc . title = str ;
17
+ nextToc . title = removeAtag ( str ) ;
18
18
nextToc . ignoreSubHeading = true ;
19
19
}
20
20
21
21
if ( / < ! - - { docsify-i g n o r e - a l l } - - > / g. test ( str ) ) {
22
22
str = str . replace ( '<!-- {docsify-ignore-all} -->' , '' ) ;
23
- nextToc . title = str ;
23
+ nextToc . title = removeAtag ( str ) ;
24
24
nextToc . ignoreAllSubs = true ;
25
25
}
26
26
27
27
if ( / { d o c s i f y - i g n o r e - a l l } / g. test ( str ) ) {
28
28
str = str . replace ( '{docsify-ignore-all}' , '' ) ;
29
- nextToc . title = str ;
29
+ nextToc . title = removeAtag ( str ) ;
30
30
nextToc . ignoreAllSubs = true ;
31
31
}
32
32
0 commit comments