https://github.com/zuedev/markdown-to-html-via-template
A simple CLI tool to convert Markdown to HTML using a template.
https://github.com/zuedev/markdown-to-html-via-template
cli convert engine file html markdown marked md md2html template
Last synced: about 2 months ago
JSON representation
A simple CLI tool to convert Markdown to HTML using a template.
- Host: GitHub
- URL: https://github.com/zuedev/markdown-to-html-via-template
- Owner: zuedev
- License: unlicense
- Created: 2023-11-12T00:28:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-11T00:20:50.000Z (about 1 year ago)
- Last Synced: 2024-10-16T19:05:05.202Z (7 months ago)
- Topics: cli, convert, engine, file, html, markdown, marked, md, md2html, template
- Language: JavaScript
- Homepage:
- Size: 186 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Installation
```bash
npm install -g markdown-to-html-via-template
```## Usage
```bash
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 versionOptions:
-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 numberExamples:
- 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
```