#229: refactor the markdown filter method by using registered filters