Prepare markdown pattern for merge

Remaining tasks:

* add tests
* add documentation
* figure out why rendering on injection replaces the original markdown text while rendering on page load only hides original markdown.