|
|
@ -283,17 +283,19 @@ rules.footnote_ref = function (tokens, idx) { |
|
|
|
if (tokens[idx].subId > 0) { |
|
|
|
id += ':' + tokens[idx].subId; |
|
|
|
} |
|
|
|
return '<a href="#fn' + n + '" class="footnoteRef" id="' + id + '"><sup>' + n + '</sup></a>'; |
|
|
|
return '<sup class="footnote-ref"><a href="#fn' + n + '" id="' + id + '">[' + n + ']</a></sup>'; |
|
|
|
}; |
|
|
|
rules.footnote_block_open = function (tokens, idx, options) { |
|
|
|
return '<div class="footnotes">\n' + (options.xhtmlOut ? '<hr />' : '<hr>') + '\n<ol>\n'; |
|
|
|
return (options.xhtmlOut ? '<hr class="footnotes-sep" />\n' : '<hr class="footnotes-sep">\n') + |
|
|
|
'<section class="footnotes">\n' + |
|
|
|
'<ol class="footnotes-list">\n'; |
|
|
|
}; |
|
|
|
rules.footnote_block_close = function () { |
|
|
|
return '</ol>\n</div>\n'; |
|
|
|
return '</ol>\n</section>\n'; |
|
|
|
}; |
|
|
|
rules.footnote_open = function (tokens, idx) { |
|
|
|
var id = Number(tokens[idx].id + 1).toString(); |
|
|
|
return '<li id="fn' + id + '">'; |
|
|
|
return '<li id="fn' + id + '" class="footnote-item">'; |
|
|
|
}; |
|
|
|
rules.footnote_close = function () { |
|
|
|
return '</li>\n'; |
|
|
@ -304,7 +306,7 @@ rules.footnote_anchor = function (tokens, idx) { |
|
|
|
if (tokens[idx].subId > 0) { |
|
|
|
id += ':' + tokens[idx].subId; |
|
|
|
} |
|
|
|
return '<a href="#' + id + '">↩</a>'; |
|
|
|
return ' <a href="#' + id + '" class="footnote-backref">↩</a>'; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|