1 override of GetMarkdown
Microsoft.Extensions.DataIngestion.Abstractions (1)
IngestionDocumentElement.cs (1)
95public override string GetMarkdown()
22 references to GetMarkdown
Microsoft.Extensions.DataIngestion (6)
Chunkers\ElementsChunker.cs (2)
62_ => element.GetMarkdown() 246IngestionDocumentElement other => other.GetMarkdown()
Chunkers\HeaderChunker.cs (1)
52headers[headerLevel] = header.GetMarkdown();
Chunkers\SectionChunker.cs (2)
60? documentHeader.GetMarkdown() 61: context + $" {documentHeader.GetMarkdown()}";
Chunkers\SemanticSimilarityChunker.cs (1)
68: element.GetMarkdown();
Microsoft.Extensions.DataIngestion.Abstractions (2)
IngestionDocumentElement.cs (2)
96=> string.Join(Environment.NewLine, Elements.Select(e => e.GetMarkdown())); 188/// <para>Null represents an empty cell (<see cref="IngestionDocumentElement.GetMarkdown()"/> can't return an empty string).</para>
Microsoft.Extensions.DataIngestion.Tests (14)
IngestionDocumentTests.cs (7)
52Assert.Equal("header", flatElements[0].GetMarkdown()); 54Assert.Equal("paragraph", flatElements[1].GetMarkdown()); 56Assert.Equal("table", flatElements[2].GetMarkdown()); 58Assert.Equal("nested header", flatElements[3].GetMarkdown()); 60Assert.Equal("nested paragraph", flatElements[4].GetMarkdown()); 62Assert.Equal("header 2", flatElements[5].GetMarkdown()); 64Assert.Equal("paragraph 2", flatElements[6].GetMarkdown());
Readers\DocumentReaderConformanceTests.cs (2)
209Assert.All(elements.Where(element => element is not IngestionDocumentImage), element => Assert.NotEmpty(element.GetMarkdown())); 217return ingestionDocumentElement.GetMarkdown().Trim().Trim('*');
Readers\MarkdownReaderTests.cs (4)
59Assert.Equal(expected, documentTable.Cells.Map(element => element!.GetMarkdown().Trim())); 125Assert.Equal("**Years**", table.Cells[0, 0]!.GetMarkdown().Trim()); 126Assert.Equal("**Logo**", table.Cells[0, 1]!.GetMarkdown().Trim()); 127Assert.Equal("2020-2025", table.Cells[1, 0]!.GetMarkdown().Trim());
Readers\MarkItDownReaderTests.cs (1)
37Assert.All(elements, element => Assert.NotEmpty(element.GetMarkdown()));