Link Search Menu Expand Document

Remark-stringify

Options

  • listItemIndent: 'tab', 'mixed' or '1', default: 'tab'.

Cook

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)
  }
}