mirror of
https://github.com/discourse/discourse.git
synced 2025-01-06 08:53:43 +08:00
d09f283e91
Syntax highlighting is a CPU-intensive process which we run a lot while rendering posts and while using the composer preview. Moving it to a background worker releases the main thread to the browser, which makes the UX much smoother.
2 lines
62 B
Handlebars
2 lines
62 B
Handlebars
<pre><code class={{codeClasses}}>{{displayCode}}</code></pre>
|