md-title
get title from markdown article
Install
npm install --save md-title
Usage
; const input = `# awesome *heading* # second heading paragragh`; text; // awesome headinghtml; // <h1>awesome <em>heading</em></h1>node; // mdast node, see remark API; // undefined
API
getTitle(input)
input
Required
Type: String
Markdown string.
Related
- md-article - extract data from your markdown article
- md-content - get content from markdown article
- md-date - get date from markdown article
- md-tags - get tags from markdown article
License
MIT © Aleksandr Filatov