13 lines
274 B
JavaScript
13 lines
274 B
JavaScript
'use strict';
|
|
|
|
var repeat = require('repeat-string');
|
|
|
|
module.exports = footnoteDefinition;
|
|
|
|
function footnoteDefinition(node) {
|
|
var id = node.identifier.toLowerCase();
|
|
var content = this.all(node).join('\n\n' + repeat(' ', 4));
|
|
|
|
return '[^' + id + ']: ' + content;
|
|
}
|