Skip to content

v2.0.0

Choose a tag to compare

@mikaelbr mikaelbr released this 14 Nov 08:16
· 256 commits to master since this release

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

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