Code within pre

main
Bob Mottram 2022-11-09 17:58:52 +00:00
parent c3f4ab8633
commit 31017ab46d
1 changed files with 2 additions and 2 deletions

View File

@ -291,8 +291,8 @@ def _markdown_replace_code(markdown: str) -> str:
lines[start_line] = '<code>' lines[start_line] = '<code>'
lines[line_ctr] = '</code>' lines[line_ctr] = '</code>'
if urlencode: if urlencode:
lines[start_line] = '<pre>' lines[start_line] = '<pre>\n<code>'
lines[line_ctr] = '</pre>' lines[line_ctr] = '</code>\n</pre>'
section_active = False section_active = False
changed = True changed = True