marked-plaintext

0.0.2 • Public • Published

A plain text renderer for Marked. Strips out all formatting, useful for generating meta tags or preview snippets.

Usage:

marked = require('marked');
PlainTextRenderer = require('marked-plaintext');
renderer = new PlainTextRenderer;
console.log(marked('Your *markdown* text', { renderer: renderer }));

Package Sidebar

Install

npm i marked-plaintext

Weekly Downloads

1,581

Version

0.0.2

License

ISC

Last publish

Collaborators

  • etler