0.1.2 • Published 9 years ago
markdown-tags v0.1.2
markdown-tags
get tags from markdown article
Install
npm install --save markdown-tags
Usage
import markdownTags from 'markdown-tags';
const input = `
# Title
_November 5, 2015_
#nodejs, #markdown, #qwe-asd`;
markdownTags(input).tags; // ['nodejs', 'markdown', 'qwe-asd']
markdownTags(input).md; // '#nodejs, #markdown, #qwe-asd'
markdownTags(); // undefined ¯\_(ツ)_/¯
API
markdownTags(input)
input
Required
Type: String
Markdown string.
Related
- article-data — extract data from your markdown article
- get-md-title — get title from markdown article
- get-md-date — get date from markdown article
- get-md-desc — get description from markdown article
- get-md-image — get image from markdown article
- get-md-content — get content from markdown article
License
MIT © Vladimir Starkov