3.1.0 • Published 2 years ago

@nitonodev/aeromd v3.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

@nitonodev/aeromd

The lightweight markdown parser for ts or js


See changes at CHANGELOG.md



npm i @nitonodev/aeromd
// if you use a commonjs
const { MarkdownParser } = require('@nitonodev/aeromd');
// if you use a esm
import { MarkdownParser } from '@nitonodev/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 functionreturn valueparams
parsestring (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(); // => <div id="html"><div id="body"><h1>Hello</h1></div></div>

// if you want to use custom parsing value
mp.parse('## Hello, World !'); // => <div id="html"><div id="body"><h2>Hello, World !</h2></div></div>

+ import '@nitonodev/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

3.1.0

2 years ago

3.0.0

2 years ago

2.3.2

2 years ago

2.3.1

2 years ago

2.3.0

2 years ago

2.2.0

2 years ago

2.1.1

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.0.0

2 years ago

0.0.0-beta

2 years ago