Browse Source

Updated markdown helper to use Extra mode

pull/111/head
Teknikode 5 years ago
parent
commit
a1606c8662
  1. 1
      Utilities/Utilities/MarkdownHelper.cs

1
Utilities/Utilities/MarkdownHelper.cs

@ -18,6 +18,7 @@ namespace Teknik.Utilities @@ -18,6 +18,7 @@ namespace Teknik.Utilities
{
// Transform the supplied text (Markdown) into HTML.
var markdownTransformer = new Markdown();
markdownTransformer.ExtraMode = true;
string html = markdownTransformer.Transform(text);
// Wrap the html in an MvcHtmlString otherwise it'll be HtmlEncoded and displayed to the user as HTML :(

Loading…
Cancel
Save