public Block EscapedMarkupTagBlock(string prefix, string suffix, AcceptedCharacters acceptedCharacters) { return(new MarkupTagBlock( _factory.Markup(prefix), _factory.BangEscape(), _factory.Markup(suffix).Accepts(acceptedCharacters))); }
public Block EscapedMarkupTagBlock( string prefix, string suffix, AcceptedCharacters acceptedCharacters, params SyntaxTreeNode[] children) { var newChildren = new List <SyntaxTreeNode>( new SyntaxTreeNode[] { _factory.Markup(prefix), _factory.BangEscape(), _factory.Markup(suffix).Accepts(acceptedCharacters) }); newChildren.AddRange(children); return(new MarkupTagBlock(newChildren.ToArray())); }
public Block MarkupTagBlock(string content, AcceptedCharacters acceptedCharacters) { return(new MarkupTagBlock( _factory.Markup(content).Accepts(acceptedCharacters) )); }