Load the minimum number of languages

Created on 21 August 2023, 10 months ago

Problem/Motivation

The CDN bundle of highlight.js includes several common languages that may not be needed. If a site needs to highlight a language not included, then the JS needs to be overridden using custom module and a custom asset .

This module can be improved by detecting which languages are needed, and registering those specific languages only.

Proposed resolution

Parse the input filter and keep a list of languages. Use an ES6 module to load the core highlight.js code

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States nmangold United States

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024