v2.0.0
Breaking changes
The output now has changed in regards to whitespace. The listitem option do no longer apply to the entire list but only individual items.
Changes as merged in #27
- Remove space before list items
- Change default tab size to 4 spaces
- Change how lists are rendered/overriden by options
- Change 'listitem' option to only affect individual items rather
than a whole list - Add 'list' option for overriding the bullets/numbering behaviour
- Support nested lists
- Fix newline differences between ul's and ol's
- Change 'listitem' option to only affect individual items rather
New in the API
There is an additional option in the API: list. Use this to customize the pullet points for ordered and unordered lists:
new TerminalRenderer({
list: function (body, ordered) {
// body : String
// ordered : bool
}
})