如何将markdown转成json

# 第一章节


> This is test.


- How are you?

- Fine, Thank you, and you?

- I'm fine, too. Thank you.



# 第二章节


第二章节


# 第三章节


第三章节

to

[

  {

    "title": "第一章节",

    "content": "This is test.\nHow are you?\nFine, Thank you, and you?\nI'm fine, too. Thank you."

  },

  {

    "title": "第二章节",

    "content": "第二章节"

  },

  {

    "title": "第三章节",

    "content": "第三章节"

  }

]


Cats萌萌
浏览 1685回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript