From 7cd13a1db3d8a5d00fd30387c535d33b991c76b7 Mon Sep 17 00:00:00 2001 From: "N0\\A" Date: Sat, 11 Jul 2026 19:55:19 +0200 Subject: [PATCH] Update parser.v --- src/parser.v | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/parser.v b/src/parser.v index febea2c..17370be 100644 --- a/src/parser.v +++ b/src/parser.v @@ -29,19 +29,16 @@ fn parse(lines []string) string { lvl, mut text := parse_header(trimmed) - if lvl > 0 { - output += '' - } + is_header := lvl > 0 - if lvl > 0 { + if is_header { + output += '' output += text + '' } else { output += text - } - - if lvl == 0 { output += '
' } + output += '\n' }