make markdown filter safe