Skip to content

Fallback to highlighting HAML with Rouge

Jacques Erasmus requested to merge je-haml-fallback into master

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
Screenshot_2023-05-08_at_15.53.24 Screenshot_2023-05-08_at_15.53.41

How to set up and validate locally

  1. View a HAML file in the repository file viewer
  2. 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.

Edited by Jacques Erasmus

Merge request reports

Loading