package.elm-lang.org icon indicating copy to clipboard operation
package.elm-lang.org copied to clipboard

Code highlighting broken when starting with module

Open sparksp opened this issue 5 years ago • 0 comments
trafficstars

If you use an elm code snippet in your documentation that starts with a module line then the highlighting does not work correctly, for example: jfmengels/[email protected] (bad highlighting with module line) vs jfmengels/[email protected] (good highlighting without module line).

I've tried out the same code samples with the most recent version of highlight.js and everything seems to work fine there, so I would suggest that updating highlight.js will solve this problem.

example of broken highlighting

sparksp avatar Sep 23 '20 14:09 sparksp