Fixed double rendering of attachments and repository annotates
Merge pull request #1043 from opf/fix/double_syntax_highlighting_output

Fixes double rendering of attachments and repository annotates