add direx and markdown mode