[markdown mode] Properly import mode/meta dependency

Issue #2914