'Unsupported markdown element: {"type":"root","children":[{"type":"paragraph","children":[{"type":"text","value":"hello","position":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":6,"offset":5}}}],"position":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":8,"offset":7}}},{"type":"paragraph","children":[{"type":"link","title":null,"url":"http://google.com","children":[{"type":"text","value":"sadsa","position":{"start":{"line":3,"column":2,"offset":12},"end":{"line":3,"column":7,"offset":17}}}],"position":{"start":{"line":3,"column":1,"offset":11},"end":{"line":3,"column":27,"offset":37}}}],"position":{"start":{"line":3,"column":1,"offset":11},"end":{"line":3,"column":29,"offset":39}}},{"type":"paragraph","children":[{"type":"strong","children":[{"type":"text","value":"Bye","position":{"start":{"line":8,"column":3,"offset":54},"end":{"line":8,"column":6,"offset":57}}}],"position":{"start":{"line":8,"column":1,"offset":52},"end":{"line":8,"column":8,"offset":59}}}],"position":{"start":{"line":8,"column":1,"offset":52},"end":{"line":8,"column":8,"offset":59}}}],"position":{"start":{"line":1,"column":1,"offset":0},"end":{"line":8,"column":8,"offset":59}}}'
Issue happens if there are more than one new lines.
another example where it would break:
const md = `
hello
bye
go
`;