Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0c8ac578c9 | ||
|
|
e8d041c251 | ||
|
|
f729c3ba43 | ||
|
|
eddfdae4ca | ||
|
|
8f047753ae | ||
|
|
50b3b73a8f | ||
|
|
0310216877 |
@@ -175,7 +175,7 @@ change:
|
|||||||
|
|
||||||
|
|
||||||
Command Line Interface
|
Command Line Interface
|
||||||
=====================
|
======================
|
||||||
|
|
||||||
Use ``markdownify example.html > example.md`` or pipe input from stdin
|
Use ``markdownify example.html > example.md`` or pipe input from stdin
|
||||||
(``cat example.html | markdownify > example.md``).
|
(``cat example.html | markdownify > example.md``).
|
||||||
|
|||||||
@@ -28,12 +28,15 @@ def main(argv=sys.argv[1:]):
|
|||||||
parser.add_argument('--default-title', action='store_false',
|
parser.add_argument('--default-title', action='store_false',
|
||||||
help="A boolean to enable setting the title of a link to its "
|
help="A boolean to enable setting the title of a link to its "
|
||||||
"href, if no title is given.")
|
"href, if no title is given.")
|
||||||
parser.add_argument('--heading-style',
|
parser.add_argument('--heading-style', default='UNDERLINED',
|
||||||
choices=('ATX', 'ATX_CLOSED', 'SETEXT', 'UNDERLINED'),
|
choices=('ATX', 'ATX_CLOSED', 'SETEXT', 'UNDERLINED'),
|
||||||
help="Defines how headings should be converted.")
|
help="Defines how headings should be converted.")
|
||||||
parser.add_argument('-b', '--bullets', default='*+-',
|
parser.add_argument('-b', '--bullets', default='*+-',
|
||||||
help="A string of bullet styles to use; the bullet will "
|
help="A string of bullet styles to use; the bullet will "
|
||||||
"alternate based on nesting level.")
|
"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='',
|
parser.add_argument('--sub-symbol', default='',
|
||||||
help="Define the chars that surround '<sub>'.")
|
help="Define the chars that surround '<sub>'.")
|
||||||
parser.add_argument('--sup-symbol', default='',
|
parser.add_argument('--sup-symbol', default='',
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -9,7 +9,7 @@ read = lambda filepath: codecs.open(filepath, 'r', 'utf-8').read()
|
|||||||
pkgmeta = {
|
pkgmeta = {
|
||||||
'__title__': 'markdownify',
|
'__title__': 'markdownify',
|
||||||
'__author__': 'Matthew Tretter',
|
'__author__': 'Matthew Tretter',
|
||||||
'__version__': '0.11.3',
|
'__version__': '0.11.5',
|
||||||
}
|
}
|
||||||
|
|
||||||
read = lambda filepath: codecs.open(filepath, 'r', 'utf-8').read()
|
read = lambda filepath: codecs.open(filepath, 'r', 'utf-8').read()
|
||||||
|
|||||||
8
tox.ini
8
tox.ini
@@ -3,8 +3,12 @@ envlist = py38
|
|||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
deps =
|
deps =
|
||||||
|
pytest
|
||||||
flake8
|
flake8
|
||||||
pytest
|
restructuredtext_lint
|
||||||
|
Pygments
|
||||||
commands =
|
commands =
|
||||||
flake8 --ignore=E501,W503 markdownify tests
|
|
||||||
pytest
|
pytest
|
||||||
|
flake8 --ignore=E501,W503 markdownify tests
|
||||||
|
restructuredtext-lint README.rst
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user