Exemplo n.º 1
0
 public Converter(ProcessorOptions options, ILogger logger, ParseResult parseResult, ConverterState converterState, bool inline = false)
 {
     _options        = options;
     _logger         = logger;
     _inline         = inline;
     _parseResult    = parseResult;
     _converterState = converterState;
     _result         = new ConversionResult(parseResult.EndOfLine);
 }
Exemplo n.º 2
0
        public Parser(ProcessorOptions options, ILogger logger, TextFile file)
        {
            _options = options;
            _logger  = logger;
            var builder = new MarkdownPipelineBuilder {
                PreciseSourceLocation = true
            };

            builder.UseAutoLinks();
            builder.UseGridTables().UsePipeTables();
            _file     = file;
            _links    = new Dictionary <Node, Link>();
            _linksMap = new Dictionary <Link, Link>(LinkAddressComparer.Instance);
            _anchors  = new Dictionary <string, Anchor>();
            _headerToLinkConverter = new HeaderToLinkConverter(_anchors);
            _markdownDocument      = Markdown.Parse(_file.Data, builder.Build());
            _endOfLine             = GetEndOfLine();
        }
Exemplo n.º 3
0
 public Processor(ProcessorOptions options, ILogger logger)
 {
     _options = options;
     _logger  = logger;
 }