- extract Markdown functionality into a mixin.
- attach some error handlers