https://github.com/greybax/md-content
get content from markdown article
https://github.com/greybax/md-content
content helper js markdown markdown-article md-article
Last synced: 2 months ago
JSON representation
get content from markdown article
- Host: GitHub
- URL: https://github.com/greybax/md-content
- Owner: greybax
- Created: 2016-05-22T03:14:02.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-04-19T00:51:28.000Z (about 6 years ago)
- Last Synced: 2024-10-12T01:16:51.007Z (8 months ago)
- Topics: content, helper, js, markdown, markdown-article, md-article
- Language: JavaScript
- Size: 34.2 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# md-content
[](https://greenkeeper.io/)
[![NPM version][npm-image]][npm-url]
[![Build Status][travis-image]][travis-url]
[![Coveralls Status][coveralls-image]][coveralls-url]
[![Dependency Status][depstat-image]][depstat-url]
[![DevDependency Status][depstat-dev-image]][depstat-dev-url]> get content from markdown article
## Install
npm install --save md-content
## Usage
```js
import getContent from 'md-content';const content_with_header_and_img = `
# header
_20 June 2016_#tag1 #tag #tag3;

content1
content2
## header2`;getContent(content_with_header_and_img).html
//
//content1
//content2
//header2
getContent(content_with_header_and_img).text
//![]()
// content1
// content2
// header2
```## API
### getContent(input)
#### input
*Required*
Type: `String`Markdown string.
## Related
* [md-article][md-article] - extract data from your markdown article
* [md-title][md-title] - get title from markdown article
* [md-date][md-date] - get date from markdown article
* [md-tags][md-tags] - get tags from markdown article## License
MIT © [Aleksandr Filatov](https://alfilatov.com)
[npm-url]: https://npmjs.org/package/md-content
[npm-image]: https://img.shields.io/npm/v/md-content.svg?style=flat-square[travis-url]: https://travis-ci.org/greybax/md-content
[travis-image]: https://img.shields.io/travis/greybax/md-content.svg?style=flat-square[coveralls-url]: https://coveralls.io/r/greybax/md-content
[coveralls-image]: https://img.shields.io/coveralls/greybax/md-content.svg?style=flat-square[depstat-url]: https://david-dm.org/greybax/md-content
[depstat-image]: https://david-dm.org/greybax/md-content.svg?style=flat-square[depstat-dev-url]: https://david-dm.org/greybax/md-content
[depstat-dev-image]: https://david-dm.org/greybax/md-content/dev-status.svg?style=flat-square[md-article]: https://github.com/greybax/md-article
[md-title]: https://github.com/greybax/md-title
[md-date]: https://github.com/greybax/md-date
[md-tags]: https://github.com/greybax/md-tags