support ext-discount and ext-cmark