MarkdownViewer: fix build
MarkdownViewer: use delegates instead of events

Work around a [temporary] regression in XM 1.8
pre-alpha. Revert when fixed.