public override ParserBase DecorateMarkupParser(ParserBase incomingMarkupParser)
        {
            var parser = base.DecorateMarkupParser(incomingMarkupParser);
            if (!(parser is HtmlMarkupParser))
            {
                // That's not HTML => we don't know how to minify it
                return parser;
            }

            var newparser = new MinifyHtmlParser(parser, _minifier);
            return newparser;
        }
        public override ParserBase DecorateMarkupParser(ParserBase incomingMarkupParser)
        {
            var parser = base.DecorateMarkupParser(incomingMarkupParser);

            if (!(parser is HtmlMarkupParser))
            {
                // That's not HTML => we don't know how to minify it
                return(parser);
            }

            var newparser = new MinifyHtmlParser(parser, _minifier);

            return(newparser);
        }