markup/highlight: Fix chroma highlight
authorsatotake <doublequotation@gmail.com>
Mon, 17 Feb 2020 13:59:26 +0000 (22:59 +0900)
committerGitHub <noreply@github.com>
Mon, 17 Feb 2020 13:59:26 +0000 (14:59 +0100)
commit3c568ad0139c79e5c0596ca40637512d71401afc
tree5d80a19c7bedaf74b614984946ce9cb23290f6ae
parent54bdcaacaedec178554e696f34647801bbe61362
markup/highlight: Fix chroma highlight

* Use chroma.Coalesce
* Escape code strings if lexer is nil

Fixes #6877
Fixes #6856
markup/highlight/highlight.go
markup/highlight/highlight_test.go