Skip to content

Commit

Permalink
temporary debug of translated HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
szn committed Sep 13, 2024
1 parent 53eba71 commit 599f684
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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
version = 0.4.7-debug
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: 2 additions & 0 deletions src/md2cf/utils/md2html.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ def md_to_html(md_file: str,
"footnotes",
],
)
logger.debug("md_to_html html before postprocessing\n%s", html)
page_id_from_meta, url = __parse_confluence_url(html.metadata)
if add_info_panel:
html = __get_info_panel(md_file) + html

md_file_dir = os.path.dirname(md_file)
html = __rewrite_images(html, md_file_dir, images)
html = __fix_code_blocks(html)
logger.debug("md_to_html html after postprocessing\n%s", html)
return html, page_id_from_meta, url, images

def __parse_confluence_url(meta: Dict[str, str]) -> Tuple[Optional[str], Optional[str]]:
Expand Down

0 comments on commit 599f684

Please sign in to comment.