3.0.0 • Published 10 months ago

@nitonodev/aeromd-html v3.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

@nitonodev/aeromd-html

The @nitonodev/aeromd plugin for generate html pages


See changes at CHANGELOG.md



npm i @nitonodev/aeromd-html
// if you use a commonjs
const { GenerateHTMLPage } = require('@nitonodev/aeromd-html');
// if you use a esm
import { GenerateHTMLPage } from '@nitonodev/aeromd-html';

To create a class you may to write next lines of code

// Instead of mp your variable name
// Instead of '# Hello' your markdown code
const mp = new GenerateHTMLPage('# Hello');

name of functionreturn valueparams
generateStylescreate a md-theme.cssno params

Examples:

const mp = new GenerateHTMLPage('# Hello');

mp.generateStyles(); // create md-theme.css and return CSS styles as string

name of functionreturn valueparams
generateHTMLPagereturn HTML page, create a md-theme.css, md.html and parse markdown datano params

Example:

const mp = new GenerateHTMLPage('# hello');

mp.generateHTMLPage(); // generate md-theme.css then parse '# hello' then generate md.html with parsed markdown and return HTML page as string

You can write me to pyto015@ya.ru or open issue at Github repo

Links

3.0.0

10 months ago

2.0.0

11 months ago

1.0.0-edited

11 months ago

1.0.0

11 months ago