1 override of GetMarkdown
Microsoft.Extensions.DataIngestion.Abstractions (1)
IngestionDocumentElement.cs (1)
95
public override string
GetMarkdown
()
33 references to GetMarkdown
Microsoft.Extensions.DataIngestion (7)
Chunkers\ElementsChunker.cs (2)
62
_ => element.
GetMarkdown
()
246
IngestionDocumentElement other => other.
GetMarkdown
()
Chunkers\HeaderChunker.cs (1)
52
headers[headerLevel] = header.
GetMarkdown
();
Chunkers\SectionChunker.cs (2)
60
? documentHeader.
GetMarkdown
()
61
: context + $" {documentHeader.
GetMarkdown
()}";
Chunkers\SemanticSimilarityChunker.cs (1)
68
: element.
GetMarkdown
();
IngestionDocumentElementExtensions.cs (1)
21
_ => 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 (24)
IngestionDocumentTests.cs (7)
52
Assert.Equal("header", flatElements[0].
GetMarkdown
());
54
Assert.Equal("paragraph", flatElements[1].
GetMarkdown
());
56
Assert.Equal("table", flatElements[2].
GetMarkdown
());
58
Assert.Equal("nested header", flatElements[3].
GetMarkdown
());
60
Assert.Equal("nested paragraph", flatElements[4].
GetMarkdown
());
62
Assert.Equal("header 2", flatElements[5].
GetMarkdown
());
64
Assert.Equal("paragraph 2", flatElements[6].
GetMarkdown
());
Readers\DocumentReaderConformanceTests.cs (2)
209
Assert.All(elements.Where(element => element is not IngestionDocumentImage), element => Assert.NotEmpty(element.
GetMarkdown
()));
217
return ingestionDocumentElement.
GetMarkdown
().Trim().Trim('*');
Readers\MarkdownReaderTests.cs (14)
59
Assert.Equal(expected, documentTable.Cells.Map(element => element!.
GetMarkdown
().Trim()));
90
Assert.Equal("Flag", documentTable.Cells[0, 0]!.
GetMarkdown
().Trim());
91
Assert.Equal("Value", documentTable.Cells[0, 1]!.
GetMarkdown
().Trim());
92
Assert.Equal("Description", documentTable.Cells[0, 2]!.
GetMarkdown
().Trim());
94
Assert.Equal("READYTORUN_FLAG_PLATFORM_NEUTRAL_SOURCE", documentTable.Cells[1, 0]!.
GetMarkdown
().Trim());
95
Assert.Equal("0x00000001", documentTable.Cells[1, 1]!.
GetMarkdown
().Trim());
96
Assert.Contains("platform neutral", documentTable.Cells[1, 2]!.
GetMarkdown
().Trim());
98
Assert.Equal("READYTORUN_FLAG_PARTIAL", documentTable.Cells[3, 0]!.
GetMarkdown
().Trim());
99
Assert.Equal("0x00000004", documentTable.Cells[3, 1]!.
GetMarkdown
().Trim());
166
Assert.Equal("**Years**", table.Cells[0, 0]!.
GetMarkdown
().Trim());
167
Assert.Equal("**Logo**", table.Cells[0, 1]!.
GetMarkdown
().Trim());
168
Assert.Equal("2020-2025", table.Cells[1, 0]!.
GetMarkdown
().Trim());
186
Assert.Equal(markdownContent, paragraph.
GetMarkdown
());
200
Assert.Equal(markdownContent, paragraph.
GetMarkdown
());
Readers\MarkItDownReaderTests.cs (1)
37
Assert.All(elements, element => Assert.NotEmpty(element.
GetMarkdown
()));