This code is based off the xml-parser here: https://github.com/segmentio/xml-parser. Please see that page for details of the JSON output. The parse function takes an ...
let markdown_input = "# Example Heading\nExample paragraph with **lorem** _ipsum_ text."; // Set up the parser. We can treat is as any other iterator. // For each event, we print its details, such as ...