Fixed footnotes in github fcb with partial rendering
This commit is contained in:
parent
d56d21db47
commit
15c51eb479
@ -75,7 +75,7 @@ define([
|
|||||||
|
|
||||||
// Strip footnotes
|
// Strip footnotes
|
||||||
if(doFootnotes) {
|
if(doFootnotes) {
|
||||||
text = text.replace(/^```.*\n[\s\S]*?\n```|\n[ ]{0,3}\[\^(.+?)\]\:[ \t]*\n?([\s\S]*?)\n{1,2}((?=\n[ ]{0,3}\S)|$)/g, function(wholeMatch, footnote) {
|
text = text.replace(/^```.*\n[\s\S]*?\n```|\n[ ]{0,3}\[\^(.+?)\]\:[ \t]*\n?([\s\S]*?)\n{1,2}((?=\n[ ]{0,3}\S)|$)/gm, function(wholeMatch, footnote) {
|
||||||
if(footnote) {
|
if(footnote) {
|
||||||
hasFootnotes = true;
|
hasFootnotes = true;
|
||||||
newLinkDefinition += wholeMatch.replace(/^\s*\n/gm, '') + '\n';
|
newLinkDefinition += wholeMatch.replace(/^\s*\n/gm, '') + '\n';
|
||||||
|
Loading…
Reference in New Issue
Block a user