A CLI program to convert your markdown into an awesome styled HTML.
This program requires the cli tool pandoc. To install it simply run sudo apt install pandoc
. You can check their docs here.
-
Clone the repo:
git clone https://github.com/MarcosNicolau/markdown_to_html.git
-
Generate the executable:
make
-
Start using it:
markdown ./<MY_MARKDOWN>.md
or see the optionsmarkdown --help
-
Choose your theme:
Currently there are 4 available themes:
And choose by running:
markdown --theme modest ./<MY_MARKDOWN>.md
If you want to add your own themes, simply create a file in the themes folder. Then, to use it, simply pass the file name:
markdown --theme <MY_THEME> ./<MY_MARKDOWN>.md
Or pass a url:
markdown --theme https://<MY_STYLE_URL> ./<MY_MARKDOWN>.md
If you wish to change the default theme run:
export MARKDOWN_DEFAULT_THEME="<YOUR_THEME>"
Before running make
, make sure you don't have any other program by the name of "markdown" because it will replace it.
You can rename the program in the Makefile:
... -o /usr/bin/<YOUR_NAME>