diff --git a/Yavsc/Helpers/TagHelpers.cs b/Yavsc/Helpers/TagHelpers.cs index 974cbaa7..9d9cc214 100644 --- a/Yavsc/Helpers/TagHelpers.cs +++ b/Yavsc/Helpers/TagHelpers.cs @@ -9,7 +9,14 @@ using Microsoft.AspNet.Razor.TagHelpers; namespace Yavsc.Helpers { [HtmlTargetElement("div", Attributes = MarkdownContentAttributeName)] + [HtmlTargetElement("h1", Attributes = MarkdownContentAttributeName)] + [HtmlTargetElement("h2", Attributes = MarkdownContentAttributeName)] + [HtmlTargetElement("h3", Attributes = MarkdownContentAttributeName)] [HtmlTargetElement("p", Attributes = "ismarkdown")] + [HtmlTargetElement("div", Attributes = "ismarkdown")] + [HtmlTargetElement("h1", Attributes = "ismarkdown")] + [HtmlTargetElement("h2", Attributes = "ismarkdown")] + [HtmlTargetElement("h3", Attributes = "ismarkdown")] [HtmlTargetElement("markdown")] [OutputElementHint("p")] public class MarkdownTagHelper : TagHelper diff --git a/Yavsc/Views/Blogspot/Edit.cshtml b/Yavsc/Views/Blogspot/Edit.cshtml index be47324f..aa86a5c7 100644 --- a/Yavsc/Views/Blogspot/Edit.cshtml +++ b/Yavsc/Views/Blogspot/Edit.cshtml @@ -32,19 +32,47 @@ } + + + + + + + + + - - - - -