aboutsummaryrefslogtreecommitdiff
path: root/code/src/html.rs
diff options
context:
space:
mode:
Diffstat (limited to 'code/src/html.rs')
-rw-r--r--code/src/html.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/code/src/html.rs b/code/src/html.rs
index 5bcc245..d310ad3 100644
--- a/code/src/html.rs
+++ b/code/src/html.rs
@@ -1,4 +1,6 @@
-use crate::{article_metadata, file_history, get_articles, markdown::blocks_to_html, ArticleMeta};
+use crate::{
+ article_metadata, file_history, get_articles, markdown::{render::blocks_to_html, self}, ArticleMeta,
+};
use laby::{frag, html, iter, li, ul, Render};
use std::fs::read_to_string;
@@ -26,7 +28,7 @@ pub fn article(path: String) -> impl Render {
scaffold(
article_metadata(path.clone().into()).title,
frag!(
- laby::raw!(blocks_to_html(markdown::tokenize(
+ laby::raw!(blocks_to_html(markdown::parser::parse(
&read_to_string(&path).unwrap()
))),
hr!(),