markdown.js: fix replace