xoofx / xoofx/markdig

Pipe table not rendering as table using NormalizeRenderer

Open
#908 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
C#
Stars
5.3k
Forks
510
Avg merge
8d 5h
Merged PRs (30d)
5

Description

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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the UsePipeTables pipeline option and NormalizeRenderer entry points shown in the report, then trace how the parsed table is rendered. Reproduce the input and compare the normalized output with the expected preserved table structure; done means table formatting is no longer collapsed into plain text.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, markdown
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.