summaryrefslogtreecommitdiff
path: root/Project-Unite/ACL.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-18 21:25:20 -0400
committerMichael <[email protected]>2017-05-18 21:25:20 -0400
commit9b06522c668ff8d2c27367529553eab6bded2021 (patch)
tree7ee18e49870a63951bc8cc35ccb92c016f1bf85c /Project-Unite/ACL.cs
parentcb9e12c980fa6abd64b0a3c57afc6496d60ca89f (diff)
downloadproject-unite-9b06522c668ff8d2c27367529553eab6bded2021.tar.gz
project-unite-9b06522c668ff8d2c27367529553eab6bded2021.tar.bz2
project-unite-9b06522c668ff8d2c27367529553eab6bded2021.zip
feedback
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();