diff options
| author | Michael <[email protected]> | 2017-05-18 21:25:20 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-18 21:25:20 -0400 |
| commit | 9b06522c668ff8d2c27367529553eab6bded2021 (patch) | |
| tree | 7ee18e49870a63951bc8cc35ccb92c016f1bf85c /Project-Unite/ACL.cs | |
| parent | cb9e12c980fa6abd64b0a3c57afc6496d60ca89f (diff) | |
| download | project-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.cs | 9 |
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(); |
