A simple markdown generator I made for my own needs, I intend on expanding its capabilities further in the close future.
- Generates a markdown table with N columns and rows
- Outputs the generated table to the terminal
- Automatically centers all columns and rows contents
- No unit tests
- Auto formatter
- The outputted table will be automatically formatted to be human readable
- This can be used as a separate feature (table formatter)
- Customizable header position
- The generator should accept a position parameter instead of always centralizing the entire table
- Input from file
- The generator should accept a set of files extensions as the input
- CSV, JSON, custom extension
- The generator should accept a set of files extensions as the input
- Interactive CLI
-
Clone the
table-generator.sh
file on./README.md
-
Customize the
raw_columns
andraw_rows
variablesraw_columns
are the table headers separated by:
raw_rows
are each row's content in the same order asraw_columns
- Each row must start with
-
- Each row column must be separated by
:
- The amount of row columns must be equal to the amount of header columns
- Each row must start with
-
Run
bash table-generator.sh
on the terminal -
Copy the console output
-
Pasta it on a markdown document