3.0.0 • Published 10 months ago
@nitonodev/aeromd-html v3.0.0
@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 function | return value | params |
---|---|---|
generateStyles | create a md-theme.css | no params |
Examples:
const mp = new GenerateHTMLPage('# Hello');
mp.generateStyles(); // create md-theme.css and return CSS styles as string
name of function | return value | params |
---|---|---|
generateHTMLPage | return HTML page, create a md-theme.css, md.html and parse markdown data | no 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