Let's say I have a (graphQL) API call that returns the following:
node {
"body": "* Hello\r\n\r\n_World_",
}
Which is
* Hello
_World_
in the original Markdown.
(To be more specific, I'm fetching github issues comments. I know there's an option for HTML in the github API, but I'm just curious.)
Is there any easy way to turn that back to Markdown in javascript? Without regex.
`, or put everything into a ` – CertainPerformance Jun 30 '22 at 01:03