Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

md2html

Simple Markdown to HTML converter

View on Codeberg

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

MD2Html

Simple Markdown to HTML converter, using delphi-markdown or PasHTMLDown (if you compile with -dUSE_PASHTMLDOWN option).

Usage

md2html expects at less one argument, the name of an existing Markdown file.

bash
./md2html FILE.md

The HTML file will be named FILE.html.

md2html accept the following optional parameters:

bash
# Set the title of the HTML file
./md2html FILE.md --title="TITLE"
# Include the content of a CSS file
./md2html FILE.md --title="TITLE" FILE.css
# Link to a CSS file
./md2html FILE.md --title="TITLE" --css="PATH_OR_URL.css"

Build

To build md2html, you need the Free Pascal Compiler.

bash
git clone --recurse-submodules https://codeberg.org/rchastain/md2html.git
cd md2html
make

Under Windows:

bash
make -f MakefileWin

Credits