I want to parse markdown to HTML tree in Node.js like:
---
title: 'some text'
create: '2019-10-23'
---
# some text
some text
{
"meta": {
"title": "some text",
"create": "2019-10-23"
},
"children": [
{
"type": "h1",
"content": "some text"
},
{
"type": "p",
"content": "some text"
}
]
}
There were some pkg i found like markdown-it
/showdown
only can make html string.