Skip to content

Fix hljs comments bug

Jacques Erasmus requested to merge fix-hljs-comments-bug into master

What does this MR do and why?

Fixes a bug where comments was not correctly displayed when highlighting with highlight.js.

Screenshots or screen recordings

before after
Screenshot_2022-05-30_at_13.50.17 Screenshot_2022-05-30_at_13.50.44

How to set up and validate locally

  1. Enable the highlight_js feature flag
  2. View a file containing a mixture of code, multi-line and single-line comments
  3. The file should highlight correctly

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Jacques Erasmus

Merge request reports

Loading