and2352000 / markdown2html

Scan directory and transpile markdown to html file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

markdownTohtml

This module can scan your directory and transpile markdown file to html file.

Install package

npm i markdowntranshtml
const markdownTohtml = require('markdowntranshtml')

Parameters

markdownTohtml(input_dir, output_dir,[encoding])

  • input_dir(require): your markdown file directory
  • output_dir(require): html file output directory
  • encoding(option): default:'utf8'
const files_count = markdownTohtml('pages', 'build/pages')
console.log("Transpile files number:",files_count)

Output directory will same as input directory

About

Scan directory and transpile markdown to html file

License:MIT License


Languages

Language:JavaScript 100.0%