Exemplo n.º 1
0
        public Parsers()
        {
            // Create inline parsers
            LineBreakParser        = new LineBreakParser();
            BacktickParser         = new BacktickParser();
            InlineCodeParser       = new InlineCodeParser();
            EscapedCharParser      = new EscapedCharParser();
            EntityParser           = new EntityParser();
            StrWithEntitiesParser  = new StrWithEntitiesParser(this);
            EscapedStringParser    = new EscapedStringParser(this);
            AutolinkParser         = new AutolinkParser(this);
            AutolinkEmailParser    = new AutolinkEmailParser(this);
            RawHtmlParser          = new RawHtmlParser();
            LinkLabelParser        = new LinkLabelParser(this);
            LinkDestinationParser  = new LinkDestinationParser(this);
            LinkTitleParser        = new LinkTitleParser(this);
            LinkReferenceParser    = new LinkReferenceParser(this);
            LinkParser             = new LinkParser(this);
            ImageParser            = new ImageParser(this);
            ImageReferenceParser   = new ImageReferenceParser(this);
            LinkDefinitionParser   = new LinkDefinitionParser(this);
            EmphasisParser         = new EmphasisParser(this);
            InlineParser           = new InlineParser(this);
            CommonMarkInlineParser = new CommonMarkInlineParser(this);

            // Create block parsers
            IndentedCodeParser = new IndentedCodeParser();
            LazyParagraphContinuationParser = new LazyParagraphContinuationParser();
            BlockQuoteParser     = new BlockQuoteParser();
            ATXHeaderParser      = new ATXHeaderParser();
            FencedCodeParser     = new FencedCodeParser();
            HtmlBlockParser      = new HtmlBlockParser();
            SetExtHeaderParser   = new SetExtHeaderParser();
            HorizontalRuleParser = new HorizontalRuleParser();
            ListParser           = new ListParser();
        }
        public Parsers()
        {
            // Create inline parsers
            LineBreakParser = new LineBreakParser();
            BacktickParser = new BacktickParser();
            InlineCodeParser = new InlineCodeParser();
            EscapedCharParser = new EscapedCharParser();
            EntityParser = new EntityParser();
            StrWithEntitiesParser = new StrWithEntitiesParser(this);
            EscapedStringParser = new EscapedStringParser(this);
            AutolinkParser = new AutolinkParser(this);
            AutolinkEmailParser = new AutolinkEmailParser(this);
            RawHtmlParser = new RawHtmlParser();
            LinkLabelParser = new LinkLabelParser(this);
            LinkDestinationParser = new LinkDestinationParser(this);
            LinkTitleParser = new LinkTitleParser(this);
            LinkReferenceParser = new LinkReferenceParser(this);
            LinkParser = new LinkParser(this);
            ImageParser = new ImageParser(this);
            ImageReferenceParser = new ImageReferenceParser(this);
            LinkDefinitionParser = new LinkDefinitionParser(this);
            EmphasisParser = new EmphasisParser(this);
            InlineParser = new InlineParser(this);
            CommonMarkInlineParser = new CommonMarkInlineParser(this);

            // Create block parsers
            IndentedCodeParser = new IndentedCodeParser();
            LazyParagraphContinuationParser = new LazyParagraphContinuationParser();
            BlockQuoteParser = new BlockQuoteParser();
            ATXHeaderParser = new ATXHeaderParser();
            FencedCodeParser = new FencedCodeParser();
            HtmlBlockParser = new HtmlBlockParser();
            SetExtHeaderParser = new SetExtHeaderParser();
            HorizontalRuleParser = new HorizontalRuleParser();
            ListParser = new ListParser();
        }