mirror of
https://github.com/discourse/discourse.git
synced 2024-12-08 01:43:46 +08:00
0878dde213
- 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> |