diff --git a/eldoc-box.el b/eldoc-box.el
index 794106d..4af8a77 100644
--- a/eldoc-box.el
+++ b/eldoc-box.el
@@ -679,7 +679,7 @@ height."
(while (re-search-forward
(rx (>= 2 (or "\n"
(seq bol "```" (* (syntax word)) "\n")
- (seq bol "
" "\n")
+ (seq (+ "
") "\n")
(seq bol (+ (or " " "\t" " ")) "\n"))))
nil t)
(if (or (eq (match-beginning 0) (point-min))