markdownsharp

Why isn't MarkdownSharp encoding my HTML?

≡放荡痞女 提交于 2019-12-05 18:14:36
问题 In my mind, one of the bigger goals of Markdown is to prevent the user from typing potentially malformed HTML directly. Well that isn't exactly working for me in MarkdownSharp. This example works properly when you have the extra line break immediately after "abc"... But when that line break isn't there, I think it should still be HtmlEncoded, but that isn't happening here... Behind the scenes, the rendered markup is coming from an iframe. And this is the code behind it... <% var md = new

MarkdownSharp & GitHub syntax for C# code

笑着哭i 提交于 2019-11-30 03:02:26
Is there a way to get MarkdownSharp (I'm using the NuGet package ) to handle ' GitHub flavored Markdown (GFM)' and especially syntax highlighting of c# code, which (in GFM) is written like this: ```c# //my code..... ``` So, if I pass Markdown formatted content to MarkDownSharp, containg a C# code block (as above) I want it to generate syntax highlighted html for that c# code. Any ideas? I know I can use the supported 4 spaces to indicate a code block, but again, I'm seeking a solution for getting it to support GitHub flavored Markdown. I have made some light modifications to MarkdownSharp that

MarkdownSharp & GitHub syntax for C# code

妖精的绣舞 提交于 2019-11-29 00:39:41
问题 Is there a way to get MarkdownSharp (I'm using the NuGet package) to handle 'GitHub flavored Markdown (GFM)' and especially syntax highlighting of c# code, which (in GFM) is written like this: ```c# //my code..... ``` So, if I pass Markdown formatted content to MarkDownSharp, containg a C# code block (as above) I want it to generate syntax highlighted html for that c# code. Any ideas? I know I can use the supported 4 spaces to indicate a code block, but again, I'm seeking a solution for