feat: Added margin notes support.

This commit is contained in:
Spencer Brower
2026-07-14 11:26:05 -04:00
parent b90496b5a2
commit 0ba29e43ed
6 changed files with 262 additions and 37 deletions
+2 -2
View File
@@ -177,9 +177,9 @@ load_page :: proc(
page.body_html = strings.clone(body)
} else {
expanded := expand_emoji(body)
clean_body, defs := strip_definitions(expanded)
clean_body, sn_defs, mn_defs := strip_definitions(expanded)
html := cm.markdown_to_html_from_string(clean_body, {.Unsafe})
html = highlight_code(inject_alerts(inject_sidenotes(html, defs)), file_path)
html = highlight_code(inject_alerts(inject_notes(html, sn_defs, mn_defs)), file_path)
if sectionate {
html = wrap_sections(html)
}