improved MarkdownTransformer