Package Exports
- strip-markdown
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (strip-markdown) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
strip-markdown

Remove Markdown formatting with remark.
This essentially removes everything but paragraphs and text nodes.
This is one of the first remark plugins, before prefixing with
remark-
got cool.
Installation
npm:
npm install strip-markdown
Usage
Dependencies:
var strip = require('strip-markdown');
var remark = require('remark');
var processor = remark().use(strip);
Process:
var file = processor.process('Some *emphasis*, **strongness**, and `code`.');
var doc = String(file);
Yields:
Some emphasis, strongness, and code.
API
remark().use(strip)
Modifies remark to expose plain-text.
- Removes
html
,code
,horizontalRule
,table
, and their content; - Render everything else as simple paragraphs without formatting.
- Uses
alt
text for images.