smarkdown
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published
smarkdown

npm gzip size install size downloads Build Status LICENSE

Markdown parser, simplicity and extensibility. Fork of marked and marked-ts.

Features

  • Awesome: ES6, TypeScript, Rollup, Jest...
  • Extensible: Add your own extensions
  • Fast: Low-level compiler for parsing markdown without caching or blocking for long periods of time
  • Lightweight: It's 10kb of minified and gzipped

Install

yarn add smarkdown
# or 
npm install smarkdown

browser (CDN): jsDelivr | unpkg

Usage

Import the library as a module:

const Smarkdown = require('smarkdown');

Or import the library with a script tag:

<script src="https://cdn.jsdelivr.net/npm/smarkdown/dist/smarkdown.min.js"></script>

Example:

const str = 'I am using **Smarkdown**.';
 
console.log(Smarkdown.parse(str));
// <p>I am using <strong>Smarkdown</strong>.</p>
 
console.log(Smarkdown.parse(str, { nop: true }));
// I am using <strong>Smarkdown</strong>.

More

Comparison

Smarkdown Marked markdown-it
Version npm npm npm
Minified & Gzipped gzip size gzip size gzip size

License

Anti 996

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.08latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.08
1.0.02
0.15.01
0.14.00
0.13.10
0.13.00
0.12.12
0.12.010
0.11.01
0.10.12
0.10.01
0.9.00
0.8.01
0.7.00
0.6.33
0.6.20
0.6.10
0.6.01
0.5.10
0.5.01
0.4.91
0.4.82
0.4.71
0.4.60
0.4.51
0.4.40
0.4.31
0.4.20
0.4.10
0.4.00
0.3.00
0.2.00
0.1.70
0.1.60
0.1.51
0.1.40
0.1.30
0.1.23
0.1.10
0.1.00
0.0.4-30
0.0.4-20
0.0.4-10
0.0.4-00
0.0.30
0.0.20

Package Sidebar

Install

npm i smarkdown

Weekly Downloads

43

Version

1.1.0

License

Anti 996

Unpacked Size

194 kB

Total Files

17

Last publish

Collaborators

  • yahtnif