Link Search Menu Expand Document

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

Related


Copyright © 2020 Thence LLC