Skip to content

Commit dd21d2f

Browse files
authored
Update lib/ex_doc/doc_ast.ex
1 parent ee73ed9 commit dd21d2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ex_doc/doc_ast.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ defmodule ExDoc.DocAST do
165165

166166
## Html cannot be parsed with regex, but we try our best...
167167
Regex.replace(
168-
~r/<pre(\s[^>]*)?><code(?:\s+class="([^"]*)")?>([^<]*)<\/code><\/pre>/,
168+
~r/<pre(\s[^>]*)?><code(?:\s+class="([^"\s]*)")?>([^<]*)<\/code><\/pre>/,
169169
html,
170170
&highlight_code_block(&1, &2, &3, &4, highlight_info, opts)
171171
)

0 commit comments

Comments
 (0)