[markdown mode] Directly use xml mode, rather than relying on text/html binding

Since the mode uses the internals of the xml mode state object, it
will break if another mode defines text/html (i.e. htmlmixed).

Closes #1468