2.0.0 • Published 10 months ago
aeromd v2.0.0
aeromd
The lightweight markdown parser for ts
or js
This is lib for html and it look like @nitonodev/aeromd
See changes at CHANGELOG.md
npm i aeromd
// if you use a commonjs
const { MarkdownParser } = require('aeromd');
// if you use a esm
import { MarkdownParser } from 'aeromd';
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 MarkdownParser('# Hello');
name of function | return value | params |
---|---|---|
parse | string (html code) | optional m by default is markdown code who declared in class definition |
Example:
const mp = new MarkdownParser('# Hello');
// if you want to use default value from class definition
mp.parse(); // => <h1>Hello</h1>
// if you want to use custom parsing value
mp.parse('## Hello, World !'); // => <h2>Hello, World !</h2>
+ import 'aeromd/lib/styles/md-theme.css'
- Write library for other programming languages
You can write me to pyto015@ya.ru or open issue at Github repo
Links