File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @sy-records/docsify-footnotes" ,
3- "version" : " 1.0.1 " ,
3+ "version" : " 1.0.2 " ,
44 "description" : " A plugin that supports the use of footnotes in docsify." ,
55 "main" : " src/index.js" ,
66 "repository" : {
Original file line number Diff line number Diff line change 11const footnotes = function ( hook ) {
22 hook . beforeEach ( function ( html ) {
3- if ( / \[ \^ ( [ A - Z a - z 0 - 9 ] + ) \] [ ^ : ] / . test ( html ) ) {
3+ if ( / \[ \^ ( [ A - Z a - z 0 - 9 \- ] + ) \] [ ^ : ] / . test ( html ) ) {
44 html = html
5- . replace ( / \[ \^ ( [ A - Z a - z 0 - 9 ] + ) \] [ ^ : ] / gm, '<sup class="footnote-symbol" id="fn-$1">[\[$1]\](#fnref-$1)</sup>' )
6- . replace ( / \[ \^ ( [ A - Z a - z 0 - 9 ] + ) \] \: / gm, '<strong class="footnote-reference-symbol" id="fnref-$1">[\[$1\]](#fn-$1)</strong>:leftwards_arrow_with_hook: ' ) ;
5+ . replace ( / \[ \^ ( [ A - Z a - z 0 - 9 \- ] + ) \] [ ^ : ] / gm, '<sup class="footnote-symbol" id="fn-$1">[\[$1]\](#fnref-$1)</sup>' )
6+ . replace ( / \[ \^ ( [ A - Z a - z 0 - 9 \- ] + ) \] \: / gm, '<strong class="footnote-reference-symbol" id="fnref-$1">[\[$1\]](#fn-$1)</strong>:leftwards_arrow_with_hook: ' ) ;
77 }
88 return html ;
99 } ) ;
You can’t perform that action at this time.
0 commit comments