Fallback to highlighting HAML with Rouge
What does this MR do and why?
Highlight.js does not highlight HAML files correctly. I've opened an issue in their repo and implemented a temporary fallback as part of this MR until the upstream issue is fixed.
Screenshots or screen recordings
before | after |
---|---|
Highlighted with Highlight.js | Highlighted with Rouge |
How to set up and validate locally
- View a HAML file in the repository file viewer
- The file should highlight as expected
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Jacques Erasmus