Changed filter to produce markdown rather than HTML
Test refactored