feat: Added server-side syntax-highlighting (via tree-sitter).

This commit is contained in:
Spencer Brower
2026-07-13 17:51:54 -04:00
parent 8de51ead39
commit d23eec448b
6 changed files with 555 additions and 8 deletions
+1 -1
View File
@@ -178,7 +178,7 @@ load_page :: proc(
expanded := expand_emoji(body)
clean_body, defs := strip_definitions(expanded)
html := cm.markdown_to_html_from_string(clean_body, {.Unsafe})
page.body_html = inject_alerts(inject_sidenotes(html, defs))
page.body_html = highlight_code(inject_alerts(inject_sidenotes(html, defs)), file_path)
}
switch page_type {