.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / remark-stringify / lib / visitors / footnote-definition.js
1 'use strict';
2
3 var repeat = require('repeat-string');
4
5 module.exports = footnoteDefinition;
6
7 function footnoteDefinition(node) {
8   var id = node.identifier.toLowerCase();
9   var content = this.all(node).join('\n\n' + repeat(' ', 4));
10
11   return '[^' + id + ']: ' + content;
12 }