Files
langchaingo/textsplitter
Daniel Bos 536f16c12a textsplitter: handle singular markdown tokens in markdown_splitter (#467)
The markdown splitter was not correctly handling singular markdown tokens
like Hr or Fence. These tokens do not have a corresponding close type,
which was causing issues in the indexOfCloseTag function.

To fix this, a check has been added to return the start index if the
closeType is nil, indicating a singular token. This prevents the function
from incorrectly trying to find a close tag for these tokens and running
past the end of the document.
2023-12-30 03:57:23 -08:00
..
2023-06-19 09:57:09 +01:00