Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PipeTableParser" /> class.
 /// </summary>
 /// <param name="lineBreakParser">The linebreak parser to use</param>
 /// <param name="options">The options.</param>
 public PipeTableParser(LineBreakInlineParser lineBreakParser, PipeTableOptions options = null)
 {
     if (lineBreakParser == null)
     {
         throw new ArgumentNullException(nameof(lineBreakParser));
     }
     this.lineBreakParser = lineBreakParser;
     OpeningCharacters    = new[] { '|', '\n' };
     Options = options ?? new PipeTableOptions();
 }
Exemplo n.º 2
0
 public override void Initialize(InlineProcessor processor)
 {
     // We are using the linebreak parser
     lineBreakParser = processor.Parsers.Find <LineBreakInlineParser>() ?? new LineBreakInlineParser();
 }