Class MarkdownDocumentReader

java.lang.Object
org.springframework.ai.reader.markdown.MarkdownDocumentReader
All Implemented Interfaces:
Supplier<List<Document>>, DocumentReader

public class MarkdownDocumentReader extends Object implements DocumentReader
Reads the given Markdown resource and groups headers, paragraphs, or text divided by horizontal lines (depending on the MarkdownDocumentReaderConfig.horizontalRuleCreateDocument configuration) into Documents.
Author:
Piotr Olaszewski
  • Constructor Details

    • MarkdownDocumentReader

      public MarkdownDocumentReader(String markdownResource)
    • MarkdownDocumentReader

      public MarkdownDocumentReader(String markdownResource, MarkdownDocumentReaderConfig config)
    • MarkdownDocumentReader

      public MarkdownDocumentReader(org.springframework.core.io.Resource markdownResource, MarkdownDocumentReaderConfig config)
  • Method Details