A simple markdown to html converter.
Use this command to convert a markdown file to html:
md2htm -f <input.md>
Metadata can be added to the markdown file using the following format:
---
pageTitle: TITLE
authorName: AUTHOR
description: DESCRIPTION
---
You can add your data to a yaml
file and use it to provide metadata to your page.
projectTitle: TITLE
description: DESCRIPTION
version: VERSION
author:
name: AUTHOR
email: EMAIL
github: GITHUB
assetsDir: ASSETS_DIR
outputDir: OUTPUT_DIR
favicon: FAVICON
You can then use the --config-file
flag to specify the configuration file.
md2htm -f <input.md> --config-file <config-file>
# or
md2htm -f <input.md> -c <config-file>
You can customize the template used for the conversion by specifying the --template-file
flag and providing a custom template file.
md2htm -f <input.md> --template-file <template-file>
# or
md2htm -f <input.md> -t <template-file>
The output will be saved in the outputDir
specified in the configuration file. If no output directory is specified, the output will be saved in the dist
directory and the file name will be the same as the input file with the .html
extension unless the --output-file
flag is used to specify a custom output file.
md2htm -f <input.md> --output-file <output-file>
# or
md2htm -f <input.md> -o <output-file>
This page was created using this tool.