From 525baabe876c047a7367dae1f954148a52f190bc Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 30 Aug 2022 00:03:37 +0200 Subject: code block formatting --- code/src/markdown.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'code/src/markdown.rs') diff --git a/code/src/markdown.rs b/code/src/markdown.rs index c194a07..5d98f83 100644 --- a/code/src/markdown.rs +++ b/code/src/markdown.rs @@ -29,7 +29,7 @@ pub fn blocks_to_html(blocks: Vec) -> String { Block::Paragraph(p) => format!("

{}

", span_to_html(p)), Block::Blockquote(q) => format!("{}", blocks_to_html(q)), Block::CodeBlock(_syntax, content) => { - format!("
{}
", escape(&content)) // TODO syntax highlighting + format!("
{}
", escape(&content)) // TODO syntax highlighting } Block::OrderedList(els, _) => format!( "
    {}
", -- cgit v1.2.3-70-g09d2