diff --git a/src/layouts/SlideLayout.astro b/src/layouts/SlideLayout.astro index 2472634..923fc32 100644 --- a/src/layouts/SlideLayout.astro +++ b/src/layouts/SlideLayout.astro @@ -46,6 +46,11 @@ document.addEventListener('DOMContentLoaded', async function() { const code = await response.text(); block.textContent = code; + // Обновляем подсветку после загрузки кода + if (Reveal.getPlugin('highlight')) { + Reveal.getPlugin('highlight').hljs.highlightBlock(block); + } + } catch (error) { block.textContent = '⚠️ Error loading code: ' + error.message; }