From 09ac51425b56e0e1453d35071c1da4e3879e4f0f Mon Sep 17 00:00:00 2001 From: radhitya Date: Sat, 18 Jan 2025 13:53:48 +0700 Subject: [PATCH] s --- main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index 458a71a..3275c4c 100644 --- a/main.c +++ b/main.c @@ -120,6 +120,7 @@ void checker(void) { } } + void doitalic(void) { if (!mdt.italic) { @@ -287,7 +288,7 @@ void generate(void) { if (len == 0) { fprintf(fpto, "\n"); } else { - i = 0; + i = 0; judul = 0; if (txt[0] == '#') { @@ -303,12 +304,12 @@ if (txt[0] == '#') { char *title_start = txt + i; if (heading_count == 1) { - if (!judul) { + if (!judul) { judul = 1; fseek(fpto, 0, SEEK_SET); fprintf(fpto, "\n\n\n" "%s\n\n" - "\n\n\n\n\n\n", title_start); + "\n\n\n\n\n", title_start); fseek(fpto, 0, SEEK_END); } fprintf(fpto, "

%s

", title_start); @@ -318,7 +319,6 @@ if (txt[0] == '#') { continue; } } - else if (len > 1 && txt[0] == '>' && txt[1] != '\\') { doblockquote(); while (i < len && (txt[i] == '>' || txt[i] == ' ')) i++;