docsify/docs/markdown.md
2017-02-19 14:38:38 +08:00

597 B

Markdown configuration

The Markdown parser is marked. You can customize how docsify renders your Markdown content to HTML. Support customize renderer.

window.$docsify = {
  markdown: {
    smartypants: true,
    renderer: {
      link: function() {
        // ...
      }
    }
  }
}

?> Configuration Options Reference marked documentation

Even you can completely customize the parsing rules.

window.$docsify = {
  markdown: function(marked, renderer) {
    // ...

    return marked
  }
}