public void Apply(MarkupContent content, MarkupRendererContext context)
 {
     content.Html = _standardLink.Replace(content.Html, match => BuildLink(context, match.Groups["Foo"].Value, match.Groups["Foo"].Value, null));
     content.Html = _anchoredLink.Replace(content.Html, match => BuildLink(context, match.Groups["Foo"].Value, match.Groups["Foo"].Value, match.Groups["Bar"].Value));
     content.Html = _namedLink.Replace(content.Html, match => BuildLink(context, match.Groups["Foo"].Value, match.Groups["Foobar"].Value, null));
     content.Html = _namedAnchoredLink.Replace(content.Html, match => BuildLink(context, match.Groups["Foo"].Value, match.Groups["Foobar"].Value, match.Groups["Bar"].Value));
 }
 public MarkupContent Render(string markupContent)
 {
     var content = new MarkupContent { Html = markupContent };
     foreach (var formatter in _formatters)
     {
         formatter.Apply(content, _context);
     }
     return content;
 }
 public void Apply(MarkupContent content, MarkupRendererContext context)
 {
     var lines = content.Html.Split('\n');
     var writer = new HtmlParagraphWriter();
     foreach (var line in lines)
     {
         writer.WriteLine(line);
     }
     content.Html = writer.ToString();
 }
 public abstract void Apply(MarkupContent content, MarkupRendererContext context);
 public void Apply(MarkupContent content, MarkupRendererContext context)
 {
     content.Html = content.Html.Replace("\\", "");
 }
 public void Apply(MarkupContent content, MarkupRendererContext context)
 {
     content.Html = _listMatcher.Replace(content.Html, MatchFormatter);
 }