Skip to content

Commit

Permalink
Add support for inline footnote parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
prashaantt committed May 31, 2014
1 parent 4a25dc1 commit dc4a06b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions lib/marked.js
Original file line number Diff line number Diff line change
Expand Up @@ -973,9 +973,9 @@ Renderer.prototype.footnoteref = function(key, count) {
Renderer.prototype.footnotes = function(notes) {
var out = '<ol class="footnotes">';
for (var i = 0; i < notes.length; i++) {
out += '<li id="fn-' + escape(notes[i].key) + '">';
out += notes[i].text;
out += '<a href="#fnref-' + escape(notes[i].key) + '">&#8617;</a>'
out += '<li id="fn' + escape(notes[i].key) + '">';
fnref = ' [&#8617;](#fnref' + escape(notes[i].key) + ')';
out += marked(notes[i].text.trim() + fnref)
out += '</li>';
}
out += '</ol>';
Expand Down
6 changes: 3 additions & 3 deletions marked.js
Original file line number Diff line number Diff line change
Expand Up @@ -973,9 +973,9 @@ Renderer.prototype.footnoteref = function(key, count) {
Renderer.prototype.footnotes = function(notes) {
var out = '<ol class="footnotes">';
for (var i = 0; i < notes.length; i++) {
out += '<li id="fn-' + escape(notes[i].key) + '">';
out += notes[i].text;
out += '<a href="#fnref-' + escape(notes[i].key) + '">&#8617;</a>'
out += '<li id="fn' + escape(notes[i].key) + '">';
fnref = ' [&#8617;](#fnref' + escape(notes[i].key) + ')';
out += marked(notes[i].text.trim() + fnref)
out += '</li>';
}
out += '</ol>';
Expand Down
Loading

0 comments on commit dc4a06b

Please sign in to comment.