I've spent some time guessing why Convert method returns errors. My first guess was that the parser returns an error whenever it's unable to parse the input (which is strange). It turned out that the only possible cases for errors are:
1) Provided Writer implementation returns an error
2) User-custom html renderers returns an error
So, in the default scenario there won't be any errors.
I've just highlighted these cases in the comments, so that future developers wouldn't have to spend time for guesswork.
Hi, thanks for your valuable work!
I've spent some time guessing why
Convert
method returns errors. My first guess was that the parser returns an error whenever it's unable to parse the input (which is strange). It turned out that the only possible cases for errors are: 1) ProvidedWriter
implementation returns an error 2) User-custom html renderers returns an errorSo, in the default scenario there won't be any errors.
I've just highlighted these cases in the comments, so that future developers wouldn't have to spend time for guesswork.