Throw in markdown, get a self-contained HTML file in return.
$ npm install @stendahls/markpage
const markpage = require( '@stendahls/markpage' );
const markdown = fs.readFileSync( './readme.md', 'utf8' );
const html = markpage( markdown, 'MyTitle' );
And then with something like express
app.get( '/', ( request, response ) => {
response.send( html );
} );
Returns a full HTML page with styling as a string.
Type: string
Default: 'Index'
Minify the CSS & JS
Type: Boolean
Default: true