Markdown for C#/WPF Project (MarkdownSharp)

后端 未结 1 873
小蘑菇
小蘑菇 2020-12-15 02:20

i did some finding and found theres a project markdown sharp which is used by stack overflow?

Open source C# implementation of Markdown processor,

相关标签:
1条回答
  • 2020-12-15 02:44

    ah. i found the answer.

    Markdown markdown = new Markdown();
    markdown.Transform(txtEditor.Text);
    

    docs: Markdown.cs

    /// <summary>
    /// Transforms the provided Markdown-formatted text to HTML;  
    /// see http://en.wikipedia.org/wiki/Markdown
    /// </summary>
    ...
    public string Transform(string text) { ... } 
    

    i found out abt this reading the inline docs. in php, web call it phpDoc but in C# i wonder whats it called.

    0 讨论(0)
提交回复
热议问题