public override string Consume(string input, Match m) { m_alignInfo = m.Groups["align"].Value; m_attsInfo = m.Groups["atts"].Value; input = string.Format("|{0}|", m.Groups["content"].Value); if (!(this.Formatter.CurrentState is TableFormatterState)) { var s = new TableFormatterState(this.Formatter); this.Formatter.ChangeState(s); } this.Formatter.ChangeState(this); return(input); }
public override string Consume(string input, Match m) { m_alignInfo = m.Groups["align"].Value; m_attsInfo = m.Groups["atts"].Value; input = string.Format("|{0}|", m.Groups["content"].Value); if (!(this.Formatter.CurrentState is TableFormatterState)) { TableFormatterState s = new TableFormatterState(this.Formatter); this.Formatter.ChangeState(s); } this.Formatter.ChangeState(this); return input; }