diff --git a/lib/ex_doc/doc_ast.ex b/lib/ex_doc/doc_ast.ex index cb20a602b..766b7b222 100644 --- a/lib/ex_doc/doc_ast.ex +++ b/lib/ex_doc/doc_ast.ex @@ -165,7 +165,7 @@ defmodule ExDoc.DocAST do ## Html cannot be parsed with regex, but we try our best... Regex.replace( - ~r/
]*)?>([^<]*)<\/code><\/pre>/,
+ ~r/]*)?>([^<]*)<\/code><\/pre>/,
html,
&highlight_code_block(&1, &2, &3, &4, highlight_info, opts)
)