mirror of
https://github.com/sbrow/thor.git
synced 2026-08-26 11:23:32 -04:00
feat: Added server-side syntax-highlighting (via tree-sitter).
This commit is contained in:
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user