added markdown support and stripping of html tags