Exception when editing a fenced code block with tagHighlighter enabled

Hi @marijn, thanks for the great project!

When tagHighlighter is enabled, adding or editing a fenced code block causes an error. Here’s a minimal demo to reproduce the issue.

screenshot

Thanks for the report. This patch should help.