From 2d29bf1c1ef421356836457b1413c860de0b6aa9 Mon Sep 17 00:00:00 2001 From: Karthik Subramanian Date: Fri, 2 Apr 2021 15:00:50 -0400 Subject: [PATCH] use full extension paths for PyInstaller to work --- postman_doc_gen/document_generator.py | 17 +++++++++++++---- requirements.txt | 2 +- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/postman_doc_gen/document_generator.py b/postman_doc_gen/document_generator.py index b68aa48..f059590 100644 --- a/postman_doc_gen/document_generator.py +++ b/postman_doc_gen/document_generator.py @@ -318,10 +318,19 @@ def markdown_to_html(md_text): :param md_text: the text with markdown :return: the converted html code """ - return markdown.markdown(md_text, extensions=['extra', 'abbr', 'attr_list', 'def_list', 'fenced_code', - 'footnotes', 'md_in_html', 'tables', 'admonition', 'codehilite', - 'legacy_attrs', 'legacy_em', 'meta', 'nl2br', 'sane_lists', - 'smarty', 'toc', 'wikilinks'], output_format='html5') + return markdown.markdown(md_text, extensions=['markdown.extensions.abbr', + 'markdown.extensions.attr_list', 'markdown.extensions.def_list', + 'markdown.extensions.fenced_code', + 'markdown.extensions.footnotes', + 'markdown.extensions.md_in_html', 'markdown.extensions.tables', + 'markdown.extensions.admonition', + 'markdown.extensions.codehilite', + 'markdown.extensions.legacy_attrs', + 'markdown.extensions.legacy_em', + 'markdown.extensions.meta', 'markdown.extensions.nl2br', + 'markdown.extensions.sane_lists', 'markdown.extensions.smarty', + 'markdown.extensions.toc', 'markdown.extensions.wikilinks'], + output_format='html5') @staticmethod def get_body(body: json) -> APIBodyModel: diff --git a/requirements.txt b/requirements.txt index 42b75c7..bc11a09 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,7 +9,7 @@ Markdown==3.3.4 MarkupSafe==1.1.1 packaging==20.9 Pygments==2.8.1 -PyInstaller==3.6 +PyInstaller==4.2 pyinstaller-hooks-contrib==2021.1 pymdown-extensions==8.1.1 pyparsing==2.4.7