akashacms-base
Advanced tools
Comparing version 0.4.1 to 0.4.2
12
index.js
@@ -650,2 +650,4 @@ /** | ||
else { | ||
// Ensure the footnote tags are replaced | ||
// so we only get here the first time through | ||
$(footnote).replaceWith(html); | ||
@@ -664,2 +666,9 @@ | ||
if ($('div#footnote-area').length <= 0) { | ||
// Insert placeholder for the footnotes. | ||
// | ||
// At the time we get here there will be | ||
// multiple root elements in the HTML. | ||
// With Cheerio 0.19 the :root selector found | ||
// each of those root elements. | ||
// We want to put this code AFTER the LAST one. | ||
$(":root").last().after("<div id='footnote-area'><strong>Footnotes</strong><br></div>"); | ||
@@ -674,3 +683,2 @@ } | ||
}); | ||
// next(new Error("footnote not yet implemented")); | ||
}, | ||
@@ -752,3 +760,3 @@ function(err) { | ||
} | ||
var docEntry = akasha.findDocumentForUrlpath(config, href); | ||
var docEntry = akasha.findDocumentForUrlpath(href); | ||
if (docEntry) { | ||
@@ -755,0 +763,0 @@ // Automatically add a title= attribute |
@@ -29,3 +29,3 @@ { | ||
}, | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"engines": { | ||
@@ -32,0 +32,0 @@ "node": ">=0.10.1" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84030
736