npm install get-title-markdownGet # title content from Markdown string.
HTML Version : azu/get-html-title
`` console`
npm install get-title-markdown
test.md
`htmlTitle
test text
`
Get title content from above markdown.
`javascript`
var getTitle = require("get-title-markdown");
var content = fs.readFileSync(__dirname + "/test.md", "utf-8");
getTitle(content); // => "Title"
1. Fork it!
2. Create your feature branch: git checkout -b my-new-featuregit commit -am 'Add some feature'
3. Commit your changes: git push origin my-new-feature`
4. Push to the branch:
5. Submit a pull request :D
MIT