get-md-title
get title from markdown article
Install
npm install --save get-md-title
Usage
; const input = `# awesome *heading* # second heading paragragh`; text; // awesome headinghtml; // awesome <em>heading</em>node; // AST node, see commonmark API; // undefined ¯\_(ツ)_/¯
API
getTitle(input)
input
Required
Type: String
Markdown string.
Related
- get-md-content - get content 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
License
MIT © Vladimir Starkov