Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 1.13 KB

README.md

File metadata and controls

30 lines (17 loc) · 1.13 KB

Tbg

Tbg is a table generator. It reads Markdown-like input and generates a table using box-drawing characters.

Usage

tbg [file]

Input syntax

Table definition consist of hyphens creating each column's header and pipes separating each column.

example1

The outer pipes and the header row are optional.

example2

Cells can vary in width and do not need to be perfectly aligned within columns. There must be at least one hyphen in each column of the header row.

example3

You can align text to the left, right, or center of a column by including colons to the left, right, or on both sides of the hyphen(s) within the header row.

example4

License

MIT