yuin / goldmark-highlighting

A Syntax highlighting extension for the goldmark markdown parser.
MIT License
100 stars 14 forks source link

Use chroma.Coalesce #13

Closed satotake closed 4 years ago

satotake commented 4 years ago

This is identical to https://github.com/gohugoio/hugo/issues/6877 chroma.Coalesce is needed to render codes in some langs (http etc) properly.

This fix leads to change expected html of TestHighlighting and TestHighlighting3. But these are trivial because unnecessary spans are removed.