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:
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.
Workaround (self-managed)
This is an instance-wide change.
-
Start a rails console
sudo gitlab-rails c -
Disable this feature
Feature.disable(:highlight_js)
- !87423 (merged) set this FF enabled.
- Feature flag documentation
Edited by Ben Prescott (ex-GitLab)
