mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 12:51:45 +08:00
![David Taylor](/assets/img/avatar_default.png)
- Remove vendored copy - Update Rails implementation to look for language definitions in node_modules - Use webpack-based dynamic import for hljs core - Use browser-native dynamic import for site-specific language bundle (and fallback to webpack-based dynamic import in tests) - Simplify markdown implementation to allow all languages into the `lang-{blah}` className - Now that all languages are passed through, resolve aliases at runtime to avoid the need for the pre-built `highlightjs-aliases` index
1 line
64 B
Handlebars
1 line
64 B
Handlebars
<pre><code class="lang-{{this.lang}}">{{this.code}}</code></pre> |