Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Markdown for C#/WPF Project (MarkdownSharp)

Tags:

c#

markdown

wpf

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

Open source C# implementation of Markdown processor, as featured on Stack Overflow.

so anyway, i downloaded it. but how do i use it? if possible any code samples or tutorials? theres none to get me started in that google code site.

like image 851
Jiew Meng Avatar asked Apr 09 '26 12:04

Jiew Meng


1 Answers

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.

like image 172
Jiew Meng Avatar answered Apr 11 '26 01:04

Jiew Meng



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!