Implement fallback to Rouge for languages not supported by Highlight.js (and track usage)
As part of moving to Highlight.js for highlighting source code we need to implement a fallback to Rouge (the old way of highlighting source code) for languages that Highlight.js does not support, and track the usage of the fallback.
This will ensure our transition to Highlight.js is smooth and give us a better understanding of how often the fallback is used (also track the language as part of the tracking event if possible?)
Resources
- Data For Product Managers
- Product Intelligence Guide
- Metrics Dictionary (for reference)
- Implement Snowplow tracking
Testing
Please note that since the changes are under feature flag, E2E tests in the MR will run against the default state (disabled). To ensure the tests still pass, it is possible to trigger package-and-qa-ff-enabled
by editing feature flag definition file or creating a connected Draft MR that does, please refer to Confirming that end-to-end tests pass with a feature flag enabled and reach out to SET if any help required.