correct command management for plain md files