@stendahls/markpage

1.0.3 • Public • Published

MarkPage

Throw in markdown, get a self-contained HTML file in return.

Install

$ npm install markpage

Usage

const markpage = require( '@stendahls/markpage' );

const markdown = fs.readFileSync( './readme.md', 'utf8' );
const html = markpage( markdown, 'MyTitle' );

API

Returns a full HTML page with styling as a string.

markpage( markdownString, [ options ] );

title

Type: string
Default: 'Index'

minify

Minify the CSS & JS
Type: Boolean
Default: true

Readme

Keywords

none

Package Sidebar

Install

npm i @stendahls/markpage

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

32 kB

Total Files

7

Last publish

Collaborators

  • mujahidrashid
  • stoyan.yankov
  • sgnurf
  • kokarn
  • stendahls.it
  • andy.mcpherson
  • ullmark