From 994766340bd33f0a7fa319e4c0e6833db97bc70e Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Wed, 18 Mar 2026 23:22:45 +0900 Subject: [PATCH] fix --- src/action/markdown.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/action/markdown.c b/src/action/markdown.c index 26d6f5d..cec25ef 100644 --- a/src/action/markdown.c +++ b/src/action/markdown.c @@ -115,11 +115,8 @@ static int enter_block(MD_BLOCKTYPE type, void* detail, void* user) { in_message = 1; } else { print_indent(); - fprintf(out, "
\n");
-			indent++;
-			print_indent();
-			fprintf(out, "\n");
-			indent++;
+			fprintf(out, "
");
+			fprintf(out, "");
 		}
 	} else if(type == MD_BLOCK_TABLE) {
 		print_indent();
@@ -216,12 +213,7 @@ static int leave_block(MD_BLOCKTYPE type, void* detail, void* user) {
 
 			in_message = 0;
 		} else {
-			indent--;
-			print_indent();
-			fprintf(out, "\n");
-			indent--;
-			print_indent();
-			fprintf(out, "
\n"); + fprintf(out, "
\n"); } } else if(type == MD_BLOCK_TABLE) { indent--;