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
var remark = var strip =
Yields:
Some emphasis, importance, and code.
API
remark().use(strip)
Modifies remark to expose plain-text.
- Removes
html
,code
,horizontalRule
,table
,yaml
,toml
, and their content - Render everything else as simple paragraphs without formatting
- Uses
alt
text for images
Contribute
See contributing.md
in remarkjs/remark
for ways to get
started.
This organisation has a Code of Conduct. By interacting with this repository, organisation, or community you agree to abide by its terms.