extracted from pandoc -D
fix syntax highlighting