langchaingo icon indicating copy to clipboard operation
langchaingo copied to clipboard

`MarkdownTextSplitter`'s `SplitText` Should Return an Error on Invalid Markdown Syntax

Open h0rv opened this issue 7 months ago • 0 comments

This had me confused for a little.

I was trying to process markdown files and they had some HTML garbage in them. This resulted in the splitter to return an empty array and fail silently (!).

Rather, it should return an error instead, stating why it failed to split the documents.

h0rv avatar Nov 29 '23 15:11 h0rv