Skip to content

zuedev/markdown-to-html-via-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

markdown-to-html-via-template pipeline status

A simple CLI tool to convert Markdown to HTML using a template.

Installation

npm install -g markdown-to-html-via-template

Usage

Usage: markdown-to-html-via-template [options] [command]

Commands:
    build    Build the HTML file from the template and markdown files
    help     Display help
    version  Display version

Options:
    -h, --help                   Output usage information
    -i, --input-file [value]     The input file (defaults to "README.md")
    -I, --insert-title           Insert the title from the markdown file (enabled by default)
    -o, --output-file [value]    The output file (defaults to "index.html")
    -t, --template-file [value]  The template file (defaults to "template.html")
    -v, --version                Output the version number

Examples:
    - Build a HTML file from a markdown file using a template
    $ markdown-to-html-via-template \
        --input-file docs/README.md \
        --output-file dist/index.html \
        --template-file src/template.html \
        --insert-title