Skip to content

Commit

Permalink
0.4.7.dev3
Browse files Browse the repository at this point in the history
  • Loading branch information
szn committed Sep 17, 2024
1 parent 25e7a64 commit f68b642
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = confluence.md
version = 0.4.7.dev2
version = 0.4.7.dev3
author = Szymon Nieradka
description = Markdown to Confluence - upload any .md files to your Confluence cloud page
long_description = file: README.md
Expand Down
2 changes: 1 addition & 1 deletion src/md2cf/utils/md2html.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def __fix_code_blocks(html: str) -> str:
@TODO temporary fix for https://github.com/szn/confluence.md/issues/12
"""
opening_tags = r"<pre>(<span></span>)?<code>"
html = re.sub(opening_tags, "<code>", html, 1)
html = re.sub(opening_tags, "<code>", html, 0)
return html.replace("</code></pre>", "</code>")

def __get_file_contents(file: str) -> str:
Expand Down

0 comments on commit f68b642

Please sign in to comment.