Remark-stringify
Options
- listItemIndent: 'tab', 'mixed' or '1', default: 'tab'.
Cook
Extending the Compiler
- source: https://github.com/remarkjs/remark/tree/main/packages/remark-stringify#extending-the-compiler
module.exports = gap
function gap() {
var Compiler = this.Compiler
var visitors = Compiler.prototype.visitors
var original = visitors.heading
visitors.heading = heading
function heading(node) {
return (node.depth === 2 ? '\n' : '') + original.apply(this, arguments)
}
}