Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/craftzdog/remark-strip-html
Remove html formatting from Markdown
https://github.com/craftzdog/remark-strip-html
javascript markdown remark
Last synced: 19 days ago
JSON representation
Remove html formatting from Markdown
- Host: GitHub
- URL: https://github.com/craftzdog/remark-strip-html
- Owner: craftzdog
- License: mit
- Created: 2017-12-21T01:50:06.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T02:40:57.000Z (over 1 year ago)
- Last Synced: 2024-10-12T22:16:56.781Z (about 1 month ago)
- Topics: javascript, markdown, remark
- Language: JavaScript
- Size: 1.67 MB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# remark-strip-html
Remove HTML formatting from Markdown with [**remark**][remark].
## Installation
[npm][]:
```bash
npm install remark-strip-html
```## Usage
```javascript
var remark = require('remark');
var strip = require('remark-strip-html');remark()
.use(strip)
.process('Hello', function (err, file) {
if (err) throw err;
console.log(String(file));
});
```Yields:
```text
Hello
```## API
### `remark().use(strip)`
Modifies **remark** to expose Markdown with HTML formatting removed.
* Removes HTML tags
## License
[MIT][license] © [Takuya Matsuyama][author]
[npm]: https://docs.npmjs.com/cli/install
[license]: LICENSE
[author]: https://www.craftz.dog/
[remark]: https://github.com/wooorm/remark