summaryrefslogtreecommitdiff
path: root/Project-Unite/ACL.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Project-Unite/ACL.cs')
-rw-r--r--Project-Unite/ACL.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/Project-Unite/ACL.cs b/Project-Unite/ACL.cs
index 74ac07e..d589fc3 100644
--- a/Project-Unite/ACL.cs
+++ b/Project-Unite/ACL.cs
@@ -44,6 +44,15 @@ namespace Project_Unite
return hpr.Raw("<a href=\"/Profiles/ViewProfile/" + user.DisplayName + "\"><span class=\"glyphicon glyphicon-star\"></span> Our newest user, <strong>" + user.DisplayName + "</strong></a>");
}
+ internal static string MarkdownRaw(string md)
+ {
+ if (md == null)
+ return "";
+ md = ResolveUserLinksInMarkdown(md);
+ return CommonMark.CommonMarkConverter.Convert(md);
+
+ }
+
public static IHtmlString GetLatestUnread(this HtmlHelper hpr, string userName)
{
var db = new ApplicationDbContext();