Inconsistent conversion from markdown to html for tables #692

Open
opened 2026-01-29 14:43:07 +00:00 by claunia · 1 comment
Owner

Originally created by @TsvetanAtanasov on GitHub (Aug 5, 2024).

Hi, I am trying to render a markdown table into html one.

var pipeline = new MarkdownPipelineBuilder().UseAdvancedExtensions().Build();
result.MessageHtml = Markdown.ToHtml(message.Content, pipeline);

I am using this code but sometimes the result is "

<code class="language-markdown">......"

When I re-render it, again it sometimes work and sometimes it does not. Any ideas how to fix this issue?

Originally created by @TsvetanAtanasov on GitHub (Aug 5, 2024). Hi, I am trying to render a markdown table into html one. var pipeline = new MarkdownPipelineBuilder().UseAdvancedExtensions().Build(); result.MessageHtml = Markdown.ToHtml(message.Content, pipeline); I am using this code but sometimes the result is "<pre><code class=\"language-markdown\">......" When I re-render it, again it sometimes work and sometimes it does not. Any ideas how to fix this issue?
claunia added the question label 2026-01-29 14:43:07 +00:00
Author
Owner

@ghost commented on GitHub (Nov 23, 2024):

you can try this
https://github.com/yilihamujiang365-new/MarkdownSharp.NET/

@ghost commented on GitHub (Nov 23, 2024): you can try this https://github.com/yilihamujiang365-new/MarkdownSharp.NET/
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#692