Add onMarkdown, modifyDocumentFragment