markdownify 1.2.0__tar.gz → 1.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {markdownify-1.2.0 → markdownify-1.2.3}/PKG-INFO +1 -1
- {markdownify-1.2.0 → markdownify-1.2.3}/markdownify/__init__.py +3 -3
- {markdownify-1.2.0 → markdownify-1.2.3}/markdownify/__init__.pyi +4 -4
- markdownify-1.2.3/markdownify/py.typed +1 -0
- {markdownify-1.2.0 → markdownify-1.2.3}/markdownify.egg-info/PKG-INFO +1 -1
- {markdownify-1.2.0 → markdownify-1.2.3}/markdownify.egg-info/SOURCES.txt +1 -0
- {markdownify-1.2.0 → markdownify-1.2.3}/pyproject.toml +1 -1
- {markdownify-1.2.0 → markdownify-1.2.3}/.github/workflows/python-app.yml +0 -0
- {markdownify-1.2.0 → markdownify-1.2.3}/.github/workflows/python-publish.yml +0 -0
- {markdownify-1.2.0 → markdownify-1.2.3}/.gitignore +0 -0
- {markdownify-1.2.0 → markdownify-1.2.3}/LICENSE +0 -0
- {markdownify-1.2.0 → markdownify-1.2.3}/MANIFEST.in +0 -0
- {markdownify-1.2.0 → markdownify-1.2.3}/README.rst +0 -0
- {markdownify-1.2.0 → markdownify-1.2.3}/markdownify/main.py +0 -0
- {markdownify-1.2.0 → markdownify-1.2.3}/markdownify.egg-info/dependency_links.txt +0 -0
- {markdownify-1.2.0 → markdownify-1.2.3}/markdownify.egg-info/entry_points.txt +0 -0
- {markdownify-1.2.0 → markdownify-1.2.3}/markdownify.egg-info/not-zip-safe +0 -0
- {markdownify-1.2.0 → markdownify-1.2.3}/markdownify.egg-info/requires.txt +0 -0
- {markdownify-1.2.0 → markdownify-1.2.3}/markdownify.egg-info/top_level.txt +0 -0
- {markdownify-1.2.0 → markdownify-1.2.3}/setup.cfg +0 -0
- {markdownify-1.2.0 → markdownify-1.2.3}/shell.nix +0 -0
- {markdownify-1.2.0 → markdownify-1.2.3}/tox.ini +0 -0
|
@@ -475,12 +475,12 @@ class MarkdownConverter(object):
|
|
|
475
475
|
|
|
476
476
|
def convert_br(self, el, text, parent_tags):
|
|
477
477
|
if '_inline' in parent_tags:
|
|
478
|
-
return ' '
|
|
478
|
+
return text + ' ' if text else ' '
|
|
479
479
|
|
|
480
480
|
if self.options['newline_style'].lower() == BACKSLASH:
|
|
481
|
-
return '\\\n'
|
|
481
|
+
return '\\\n' + text
|
|
482
482
|
else:
|
|
483
|
-
return ' \n'
|
|
483
|
+
return ' \n' + text
|
|
484
484
|
|
|
485
485
|
def convert_code(self, el, text, parent_tags):
|
|
486
486
|
if '_noformat' in parent_tags:
|
|
@@ -32,13 +32,13 @@ def markdownify(
|
|
|
32
32
|
newline_style: str = ...,
|
|
33
33
|
strip: Union[list[str], None] = ...,
|
|
34
34
|
strip_document: Union[str, None] = ...,
|
|
35
|
-
strip_pre: str = ...,
|
|
35
|
+
strip_pre: Union[str, None] = ...,
|
|
36
36
|
strong_em_symbol: str = ...,
|
|
37
37
|
sub_symbol: str = ...,
|
|
38
38
|
sup_symbol: str = ...,
|
|
39
39
|
table_infer_header: bool = ...,
|
|
40
40
|
wrap: bool = ...,
|
|
41
|
-
wrap_width: int = ...,
|
|
41
|
+
wrap_width: Union[int, None] = ...,
|
|
42
42
|
) -> str: ...
|
|
43
43
|
|
|
44
44
|
|
|
@@ -60,13 +60,13 @@ class MarkdownConverter:
|
|
|
60
60
|
newline_style: str = ...,
|
|
61
61
|
strip: Union[list[str], None] = ...,
|
|
62
62
|
strip_document: Union[str, None] = ...,
|
|
63
|
-
strip_pre: str = ...,
|
|
63
|
+
strip_pre: Union[str, None] = ...,
|
|
64
64
|
strong_em_symbol: str = ...,
|
|
65
65
|
sub_symbol: str = ...,
|
|
66
66
|
sup_symbol: str = ...,
|
|
67
67
|
table_infer_header: bool = ...,
|
|
68
68
|
wrap: bool = ...,
|
|
69
|
-
wrap_width: int = ...,
|
|
69
|
+
wrap_width: Union[int, None] = ...,
|
|
70
70
|
) -> None:
|
|
71
71
|
...
|
|
72
72
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|