From 0f1fc0838b2bcef1a3de7168479c4e0f909f82f1 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Mon, 18 May 2026 11:05:48 +0300 Subject: [PATCH] use markdown --- highlight/markdown.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/highlight/markdown.v b/highlight/markdown.v index 83acfba..94346bf 100644 --- a/highlight/markdown.v +++ b/highlight/markdown.v @@ -1,6 +1,6 @@ module highlight -import markdown +import x.markdown import regex.pcre const allowed_tags = [ @@ -72,7 +72,7 @@ const unallowed_schemas = [ pub fn convert_markdown_to_html(code string) string { markdown_code := sanitize_markdown_code(code) - return markdown.to_html(markdown_code) + return markdown.to_html(markdown_code).trim_right('\n') } // temporary solution while markdown module doesn't support -- 2.39.5