diff --git a/src/eval/codeblock.jl b/src/eval/codeblock.jl
index 30c6373a6..66c07541c 100644
--- a/src/eval/codeblock.jl
+++ b/src/eval/codeblock.jl
@@ -210,7 +210,7 @@ function resolve_code_block(
r = eval(Meta.parse("@doc $code"))
push!(repl_code_chunks,
code => replace(Markdown.html(r),
- "" => "",
+ r"\" => "",
"" => "",
"language-jldoctest" => "language-julia-repl"
)