From eddfdae4ca5979f647477f8677a24d9dd86743f1 Mon Sep 17 00:00:00 2001 From: AlexVonB Date: Wed, 31 Aug 2022 21:44:42 +0200 Subject: [PATCH 1/3] fix cli options: default heading, em symbols --- markdownify/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/markdownify/main.py b/markdownify/main.py index 87c7c77..39fa179 100644 --- a/markdownify/main.py +++ b/markdownify/main.py @@ -28,12 +28,15 @@ def main(argv=sys.argv[1:]): parser.add_argument('--default-title', action='store_false', help="A boolean to enable setting the title of a link to its " "href, if no title is given.") - parser.add_argument('--heading-style', + parser.add_argument('--heading-style', default='UNDERLINED', choices=('ATX', 'ATX_CLOSED', 'SETEXT', 'UNDERLINED'), help="Defines how headings should be converted.") parser.add_argument('-b', '--bullets', default='*+-', help="A string of bullet styles to use; the bullet will " "alternate based on nesting level.") + parser.add_argument('--strong-em-symbol', default='ASTERISK', + choices=('ASTERISK', 'UNDERSCORE'), + help="Use * or _ to convert strong and italics text"), parser.add_argument('--sub-symbol', default='', help="Define the chars that surround ''.") parser.add_argument('--sup-symbol', default='', From f729c3ba43c1985a54290e0edcb5e11b44e760eb Mon Sep 17 00:00:00 2001 From: AlexVonB Date: Wed, 31 Aug 2022 21:44:53 +0200 Subject: [PATCH 2/3] first test, then lint --- tox.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index e4f184a..750d30f 100644 --- a/tox.ini +++ b/tox.ini @@ -3,12 +3,12 @@ envlist = py38 [testenv] deps = - flake8 pytest + flake8 restructuredtext_lint Pygments commands = - flake8 --ignore=E501,W503 markdownify tests pytest + flake8 --ignore=E501,W503 markdownify tests restructuredtext-lint README.rst From e8d041c251b46a483eaf4e8ad07917ec41f7ab8b Mon Sep 17 00:00:00 2001 From: AlexVonB Date: Wed, 31 Aug 2022 21:45:24 +0200 Subject: [PATCH 3/3] bump to v0.11.5 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3b3e9b9..1391bed 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ read = lambda filepath: codecs.open(filepath, 'r', 'utf-8').read() pkgmeta = { '__title__': 'markdownify', '__author__': 'Matthew Tretter', - '__version__': '0.11.4', + '__version__': '0.11.5', } read = lambda filepath: codecs.open(filepath, 'r', 'utf-8').read()