1.0.8 • Published 8 years ago

md-content v1.0.8

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

md-content

NPM version Build Status Coveralls Status Dependency Status DevDependency Status

get content from markdown article

Install

npm install --save md-content

Usage

import getContent from 'md-content';

const content_with_header_and_img = `
# header
_20 June 2016_

#tag1 #tag #tag3;

![alt](http://yo.io/)

content1

content2
## header2`;

getContent(content_with_header_and_img).html
// <p><img src="http://yo.io/" alt="alt"></p>
// <p>content1</p>
// <p>content2</p>
// <h2>header2</h2>

getContent(content_with_header_and_img).text
// <img src="http://yo.io/" alt="alt">
// content1
// content2
// header2

API

getContent(input)

input

Required
Type: String

Markdown string.

Related

  • md-article - extract data from your markdown article
    • md-title - get title from markdown article
    • md-date - get date from markdown article
    • md-tags - get tags from markdown article

License

MIT © Aleksandr Filatov

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago