kramed
kramed copied to clipboard
A markdown (kramdown compatible) parser and compiler. Built for speed. (Fork of marked)
See https://github.com/GitbookIO/gitbook/issues/901
The README says that this should be possible: ``` js // Synchronous highlighting with highlight.js kramed.setOptions({ highlight: function (code) { return require('highlight.js').highlightAuto(code).value; } }); console.log(kramed(markdownString)); ``` but it's not (anymore)....
Added an `autoIds` option in `Renderer`. Defaults to `true`. Setting it to `false` in the `Renderer` or `kramed.defaults` will disable creating ids. ``` javascript kramed.setOptions({ autoIds: false, renderer: false //...
In books, tables are generally accompanied by a caption. HTML specification is to have a caption tag right above the . Right now, to add a caption the whole table...
Typically, en-dashes are created by double dashes `--`, em-dashes by triple dashes `---` (e.g., [compose key syntax](http://en.wikipedia.org/wiki/Wikipedia:How_to_make_dashes) or [LaTeX](http://tex.stackexchange.com/a/3821/13262)). This pull request implements this behavior.