TIL Converter is a command-line tool for converting “Today I Learned” (TIL) posts written in Markdown to HTML.
To use TIL Converter, you need to have Python and the required libraries installed. You can install the necessary libraries using pip:
```bash pip install markdown pip install tomlkit
To convert a Markdown file to HTML, run the following command: python til_converter.py input.txt
Command-Line Options -o, –output: Specify the output directory (default is “til”). -s, –stylesheet: Use a custom CSS stylesheet. -c, –config: Use a config file to specify command-line options. …
Example 1: Convert a Single File To convert a single Markdown file to HTML, run: python til_converter.py post.txt
To convert all Markdown files in a folder, provide the folder path: python til_converter.py /path/to/folder
python til_converter.py examples/sample.txt -c examples/config.toml