You can install docutils with your npm client of choice. Parse the input string and return a hierarchy of plain javascript objects. The function will throw an error ...