[match-highlighter addon] Use primary selection, not first one

Closes #2539
[markdown mode] Fix code block styling after indented line
[markdown mode] Fix XML styling in Markdown mode

Fix the condition when XML styling should be invoked.
Also add test cases.
[dylan mode] Add module loading shim

Closes #2533