added markdown filter
a bunch of template work