diff --git a/setup.cfg b/setup.cfg index 5b269d0..d1d2fb1 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 diff --git a/src/md2cf/utils/md2html.py b/src/md2cf/utils/md2html.py index 53cdee8..b437857 100644 --- a/src/md2cf/utils/md2html.py +++ b/src/md2cf/utils/md2html.py @@ -32,6 +32,7 @@ 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 @@ -39,6 +40,7 @@ def md_to_html(md_file: str, 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]]: