diff --git a/markdown.awk b/markdown.awk
index 20adfcb..61fcd23 100644
--- a/markdown.awk
+++ b/markdown.awk
@@ -225,7 +225,7 @@ function parse_line(str, result, end, i) {
end = find(str, "`", i+1);
if (end != 0) {
result = result "" escape_text(substr(str, i+1, end - i - 1)) "
";
- i = end+1;
+ i = end;
}
else {
result = result "`";
diff --git a/test.sh b/test.sh
index e635597..2ce956e 100755
--- a/test.sh
+++ b/test.sh
@@ -143,9 +143,9 @@ second line of code
EOF
check <<-"EOF"
-This is `inline code`
+This is `inline code` block
---
-
This is inline code
This is inline code
block