Fixed refactoring error in markdown command