langchaingo
langchaingo copied to clipboard
`MarkdownTextSplitter`'s `SplitText` Should Return an Error on Invalid Markdown Syntax
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.