9716091ecc951595faed78bfcbc9c9d125a10745
Performance: Replace hljs.highlightAuto() fallback with plain escapeHtml() for unlabeled code blocks. highlightAuto tries every grammar (~6.7ms/block) while escapeHtml costs ~0.04ms. With thousands of unlabeled blocks in typical sessions this dominated render time. Import shared escapeHtml instead of the local duplicate. Import github-dark highlight.js theme CSS directly. Fix highlightSearchText to avoid corrupting HTML entities: split text on entity patterns (& < etc.) before applying search regex, so searching for 'amp' does not break & into &<mark>amp</mark>;. Add unit tests for highlightSearchText covering: plain text matches, empty queries, avoiding matches inside HTML tags, and preserving HTML entities. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Description
No description provided
Languages
TypeScript
84.7%
HTML
8.8%
CSS
5%
JavaScript
1.5%