I recently needed, for a side project, a way to display styled text - text blocks with word-wrapping, bold, lists and hyperlinks - in a WPF application.

The display text isn’t static, but is going to be generated by code and/or loaded from files, so I needed a solution that was quite flexible in how it worked.

Markdown seemed like a good choice - easy to write and to generate, if only there was a good way to display the formatted results. I found a number of heavyweight solutions but they all seemed like overkill for my simple needs.

My solution? A port of MarkdownSharp that renders to a XAML FlowDocument instead of a string containing HTML.

The resulting code: Markdown.XAML is now available on Github.


blog comments powered by Disqus
Next Post
Code Analysis vs Code Contracts  16 Feb 2013
Prior Post
Care about the User Experience  21 Jan 2013
Related Posts
Update for Markdown.Xaml  01 Apr 2013
Related Pages
January 2013 archive