summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 7743de8..cf9cc97 100644
--- a/main.c
+++ b/main.c
@@ -370,7 +370,7 @@ void markup_inline(InlineState *ms, Str *out, Str src, Arena *scratch, Arena *pe
 				markup_inline(ms, out, lnk.head, scratch, perm);
 				str_cat(out, S("</a>"), perm);
 				if (!f.n) break;
-				i = f.s - src.s + 2;
+				i = f.s - src.s + 1;
 			} else if (str_starts(skp, S("---"))) {
 				str_cat(out, S("&mdash;"), perm);
 				i += 2;