diff options
author | wrmr | 2025-05-14 21:44:44 -0500 |
---|---|---|
committer | wrmr | 2025-05-14 21:44:44 -0500 |
commit | 107a7af8b692e9c114c12a240a0a26fc125a1216 (patch) | |
tree | 42c0eb0ca2dc70934189bad1eed4a651bb962359 | |
parent | 4022ff9578b4fbcb64f3896702d74529f92c7608 (diff) |
fix an off-by-one error in inline link implementation
-rw-r--r-- | main.c | 2 |
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("—"), perm); i += 2; |