Skip to content

Commit eddfdae

Browse files
committed
fix cli options: default heading, em symbols
1 parent 50b3b73 commit eddfdae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

markdownify/main.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,15 @@ def main(argv=sys.argv[1:]):
2828
parser.add_argument('--default-title', action='store_false',
2929
help="A boolean to enable setting the title of a link to its "
3030
"href, if no title is given.")
31-
parser.add_argument('--heading-style',
31+
parser.add_argument('--heading-style', default='UNDERLINED',
3232
choices=('ATX', 'ATX_CLOSED', 'SETEXT', 'UNDERLINED'),
3333
help="Defines how headings should be converted.")
3434
parser.add_argument('-b', '--bullets', default='*+-',
3535
help="A string of bullet styles to use; the bullet will "
3636
"alternate based on nesting level.")
37+
parser.add_argument('--strong-em-symbol', default='ASTERISK',
38+
choices=('ASTERISK', 'UNDERSCORE'),
39+
help="Use * or _ to convert strong and italics text"),
3740
parser.add_argument('--sub-symbol', default='',
3841
help="Define the chars that surround '<sub>'.")
3942
parser.add_argument('--sup-symbol', default='',

0 commit comments

Comments
 (0)