feat: Emoji shorthand.

This commit is contained in:
Spencer Brower
2026-07-11 19:28:36 -04:00
parent 241068b487
commit 4fa7227b94
3 changed files with 443 additions and 4 deletions
+2 -1
View File
@@ -173,7 +173,8 @@ load_page :: proc(
if strings.has_suffix(file_path, ".html") {
page.body_html = strings.clone(body)
} else {
clean_body, defs := strip_definitions(body)
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))
}