new markdown filter implementation