@cmerot/md2html
Command line interface to generate html files from markdown files.
Last updated 8 months ago by cmerot .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @cmerot/md2html 
SYNC missed versions from official npm registry.

md2html

Command line interface to generate html files from markdown files.

Special features:

  • transform PlantUML code into SVG
  • index documents with Elasticlunr, provide a very basic search interface via a React component.

I wrote this to have a quick preview of PlantUML diagrams in my code editor. The search engine is just for fun.

It uses the unified ecosystem to process markdown and html.

Usage

Usage: md2html [options]

Options:
-V, --version             output the version number
-w, --watch               watch for markdown changes
-s, --add-search          add a search input
-p, --transform-plantuml  process plantUML code blocks
-o, --output-dir <dir>    define output directory
-i, --input-dir <dir>     define input directory
-h, --help                output usage information

Install

npm install -g @cmerot/md2html

Development

Files

  • ./bin/md2html: the CLI that generates html and copies the ./public content to the ouput directory
  • ./lib: the unified / remark / rehype processor libraries
  • ./src: the react app sources
  • ./public/search-palette.js: webpack bundle of the react app.

Build the search-palette app

yarn build
yarn build:prod
yarn watch

Current Tags

  • 2.0.3                                ...           latest (8 months ago)

6 Versions

  • 2.0.3                                ...           8 months ago
  • 2.0.2                                ...           a year ago
  • 2.0.1                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 6
Last Day 0
Last Week 6
Last Month 0
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |