Skip to content

3.0.0

Compare
Choose a tag to compare
@nateberkopec nateberkopec released this 10 May 14:13
· 22 commits to master since this release
50f2dfc
  • Support for (optional) Unicode border styles on tables. In order to support decent looking Unicode borders, different types of intersections get different types of intersection characters. This has the side effect of subtle formatting differences even for the ASCII table border case due to removal of certain intersections near colspans.

For example, previously the output of a table may be:
+------+-----+
| Title |
+------+-----+
| Char | Num |
+------+-----+
| a | 1 |
| b | 2 |
| c | 3 |
+------+-----+

And now the + character above the word Title is removed, as it is no longer considered an intersection:

    +------------+
    |   Title    |
    +------+-----+
    | Char | Num |
    +------+-----+
    | a    | 1   |
    | b    | 2   |
    +------+-----+
  • The default border remains an ASCII border for backwards compatibility, however multiple border classes are included / documented, and user defined border types can be applied as needed.

In support of this update, the following issues were addressed:

  • colspan creates conflict with colorize (#95)
  • Use nice UTF box-drawing characters by default (#99)
    • Note that AsciiBorder is stll the default
  • Border-left and border-right style (#100)
  • Helper function to style as Markdown (#111)
    • Achieved using MarkdownBorder