Syntax improvements

This pull request bundles various improvements syntax highlighting improvements:
 - better support for templates and template parameters
 - support for tables
 - support for plain links
 - proper support for `<pre>...</pre>` blocks

It is still possible to find edge cases where the highlighting breaks (e.g.: nested tables), but in most cases it works well.