xoofx / markdig

A fast, powerful, CommonMark compliant, extensible Markdown processor for .NET
BSD 2-Clause "Simplified" License
4.41k stars 456 forks source link

Inconsistent conversion from markdown to html for tables #812

Open TsvetanAtanasov opened 3 months ago

TsvetanAtanasov commented 3 months ago

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?

yilihamujiang365-new commented 8 hours ago

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