(issue #951) replace markdown.js with marked.js
(issue #951) add tests for markdown