Highlighting of multi-line Python docstrings broken with HighlightJS

With the rollout of HighlightJS syntax highlighting in 15.2.0, the highlighting of multi-line Python docstrings is broken in the repo browser, highlighting just the first line of the comment:

bild

I tested the above with a plain HTML/JS snippet that uses HighlightJS and it came out OK, so must be something with how GitLab is using HighlightJS.

@jerasmus

Workaround (self-managed)

This is an instance-wide change.

  1. Start a rails console

    sudo gitlab-rails c
  2. Disable this feature

    Feature.disable(:highlight_js)
Edited by Ben Prescott (ex-GitLab)