markdig icon indicating copy to clipboard operation
markdig copied to clipboard

Pipe table not rendering as table using NormalizeRenderer

Open PJProost opened this issue 2 months ago • 1 comments

Given this input;

| Typ              | Opis |
| ---------------- | ---- |
| `Authentication` | Certyfikat przeznaczony do uwierzytelniania w systemie KSeF.<br/>**keyUsage:** Digital Signature (80) |
| `Offline`        | Certyfikat przeznaczony wyłącznie do wystawiania faktur w trybie offline. Używany do potwierdzania autentyczności wystawcy i integralności faktury poprzez [kod QR II](kody-qr.md). Nie umożliwia uwierzytelnienia.<br/>**keyUsage:** Non-Repudiation (40) |

This code:

    var markdownPipeline = new MarkdownPipelineBuilder()
      .UsePipeTables()
      .Build();
    var markdownDoc = Markdown.Parse(inputString, markdownPipeline);

    using var writer = new StringWriter();
    var renderer = new Markdig.Renderers.Normalize.NormalizeRenderer(writer);
    markdownPipeline.Setup(renderer);
    renderer.Render(markdownDoc);
    var outputString = writer.ToString();

Outputs:

TypOpis`Authentication`Certyfikat przeznaczony do uwierzytelniania w systemie KSeF.<br/>**keyUsage:** Digital Signature (80)`Offline`Certyfikat przeznaczony wyłącznie do wystawiania faktur w trybie offline. Używany do potwierdzania autentyczności wystawcy i integralności faktury poprzez [kod QR II](kody-qr.md). Nie umożliwia uwierzytelnienia.<br/>**keyUsage:** Non-Repudiation (40)

So the table formatting got lost. Seems like a bug, or do I have an implementation error?

PJProost avatar Oct 28 '25 16:10 PJProost

Unfortunately, the normalize renderer does not support tables #155 (and many other extensions)

I never got it finished, as it was way too much work.

xoofx avatar Oct 28 '25 18:10 xoofx