mirror of
https://github.com/sbrow/thor.git
synced 2026-08-26 11:23:32 -04:00
feat: Added margin notes support.
This commit is contained in:
+2
-2
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user