markdown2text

1.1.0 • Public • Published

markdown2text

Trivial utility project to convert markdown to plaintext using markdown-it.

Slapped together in the middle of another project, don't expect much.

Usage

CLI:

npm i markdown2text
echo "# yo\ntext and a [link](https://gjp.cc)" | markdown2text
# Outputs:
#   yo
#   text and a link

Library:

const markdownToText = require('markdown2text');
console.log(markdownToText('a [link](https://gjp.cc)'));
// Outputs: "a link"

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.06latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.06
1.0.10
1.0.00

Package Sidebar

Install

npm i markdown2text

Weekly Downloads

6

Version

1.1.0

License

MIT

Unpacked Size

2.52 kB

Total Files

5

Last publish

Collaborators

  • gpittarelli