markdown strike & underline & htbase

This commit is contained in:
Paul Schneider 2016-08-03 16:38:25 +02:00
commit 652a75c05e
9 changed files with 46 additions and 5679 deletions

View file

@ -16,10 +16,8 @@ namespace Yavsc.Helpers
{
private const string MarkdownContentAttributeName = "markdown";
private const string MarkdownMarkAttributeName = "ismarkdown";
[HtmlAttributeName("site")]
public SiteSettings Site { get; set; }
[HtmlAttributeName("base")]
public string Base { get; set; }
@ -107,10 +105,12 @@ namespace Yavsc.Helpers
var content = await GetContent(output);
var markdown = content;
var basePath = Base?.StartsWith("~") ?? false ?
Constants.UserFilesDir +
Base.Substring(1) : Base;
var html = Markdown(markdown, basePath);
var htbase = Base;
var html = Markdown(markdown, htbase);
output.Content.SetHtmlContent(html ?? "");
}
private async Task<string> GetContent(TagHelperOutput output)