Skip to content
This repository has been archived by the owner. It is now read-only.

alikhan1998/TIL-Markdown2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TIL-Markdown2

TIL Converter - Convert Markdown to HTML

TIL Converter is a command-line tool for converting "Today I Learned" (TIL) posts written in Markdown to HTML.

Installation

To use TIL Converter, you need to have Python and the required libraries installed. You can install the necessary libraries using pip:

pip install markdown
pip install tomlkit

## Usage
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.
...

## Examples
Example 1: Convert a Single File
To convert a single Markdown file to HTML, run:
python til_converter.py post.txt

## Example 2: Convert All Files in a Folder
To convert all Markdown files in a folder, provide the folder path:
python til_converter.py /path/to/folder

## Example 3: Convert a Single File Using Options Specified in a Config File
python til_converter.py examples/sample.txt -c examples/config.toml

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published