Closed jakobkmar closed 3 years ago
Thanks for the stack trace and reproducer.
The very first line in the CommonMark spec is
Any sequence of characters is a valid CommonMark document.
So I don't think that mordant should ever throw an exception when rendering markdown. I'll take a look at this bug, and if you find any other inputs that throw a different stack trace, please open up a new issue.
I have an application where I query markdown from a third party API, and this is valid markdown syntax in most of the cases. Therefore I am rendering the returned markdown text using mordant, and this works in most of the cases.
But I encountered the following problem where the mordant
MarkdownRenderer
encounters an unexpected "token":The corresponding text was:
Is it possible to add an option to ignore these unexpected characters / tokens?