add text filters

Add two filters: markdown_thumbnails, html_thumbnails. Those filters use
regex to replace images with thumbnails. The width of the thumbnails is
set to THUMBNAIL_FILTER_WIDTH which is by default 500.