|
15 | 15 | using Markdig.Extensions.Yaml; |
16 | 16 | using Markdig.Renderers; |
17 | 17 | using Markdig.Syntax; |
| 18 | +using Markdig.Syntax.Inlines; |
18 | 19 | using CodeBlock = Markdig.Syntax.CodeBlock; |
19 | 20 |
|
20 | 21 | namespace Elastic.Markdown.Myst.Renderers.LlmMarkdown; |
@@ -104,7 +105,7 @@ private static string ExtractHeadingText(HeadingBlock heading) |
104 | 105 | if (heading.Inline == null) |
105 | 106 | return string.Empty; |
106 | 107 | return heading.Inline.Descendants() |
107 | | - .OfType<Markdig.Syntax.Inlines.LiteralInline>() |
| 108 | + .OfType<LiteralInline>() |
108 | 109 | .Select(l => l.Content.ToString()) |
109 | 110 | .Aggregate(string.Empty, (current, text) => current + text); |
110 | 111 | } |
@@ -306,7 +307,7 @@ protected override void Write(LlmMarkdownRenderer renderer, Table table) |
306 | 307 | BuildContext = renderer.BuildContext |
307 | 308 | }; |
308 | 309 | // Render cell content to temporary writer |
309 | | - foreach (var inline in cell.Descendants().OfType<Markdig.Syntax.Inlines.Inline>()) |
| 310 | + foreach (var inline in cell.Descendants().OfType<Inline>()) |
310 | 311 | tempRenderer.Write(inline); |
311 | 312 |
|
312 | 313 | // Write padded content |
@@ -345,7 +346,7 @@ protected override void Write(LlmMarkdownRenderer renderer, Table table) |
345 | 346 | BuildContext = renderer.BuildContext |
346 | 347 | }; |
347 | 348 | // Render cell content to temporary writer |
348 | | - foreach (var inline in cell.Descendants().OfType<Markdig.Syntax.Inlines.Inline>()) |
| 349 | + foreach (var inline in cell.Descendants().OfType<Inline>()) |
349 | 350 | tempRenderer.Write(inline); |
350 | 351 |
|
351 | 352 | // Write padded content |
@@ -385,7 +386,7 @@ private static int[] CalculateColumnWidths(LlmMarkdownRenderer renderer, Table t |
385 | 386 | BuildContext = renderer.BuildContext |
386 | 387 | }; |
387 | 388 | // Render cell content to temporary writer |
388 | | - foreach (var inline in cell.Descendants().OfType<Markdig.Syntax.Inlines.Inline>()) |
| 389 | + foreach (var inline in cell.Descendants().OfType<Inline>()) |
389 | 390 | { |
390 | 391 | tempRenderer.Write(inline); |
391 | 392 | } |
|
0 commit comments