public override string ToString() { var text = base.ToString(); text = NewlinePattern.Replace(text, " "); // These leading spaces screw with <pre> content, so we need to fix that: text = PreTagPattern.Replace(text, BlockQuotePreLeadingSpacesFix); return(Templates.Blockquote.Render(Hash.FromAnonymousObject(new { value = text }))); }
public override void AppendHTML(StringBuilder builder, Stack <EMInclude> includesStack, TransformationData data) { var content = Elements.GetInnerHTML(includesStack, data); content = NewlinePattern.Replace(content, " "); // These leading spaces screw with <pre> content, so we need to fix that: content = PreTagPattern.Replace(content, BlockQuotePreLeadingSpacesFix); builder.Append(Templates.Blockquote.Render(Hash.FromAnonymousObject(new { value = content }))); }