markdownify 1.2.2__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.
Files changed (22) hide show
  1. {markdownify-1.2.2 → markdownify-1.2.3}/PKG-INFO +1 -1
  2. {markdownify-1.2.2 → markdownify-1.2.3}/markdownify/__init__.py +3 -3
  3. {markdownify-1.2.2 → markdownify-1.2.3}/markdownify/__init__.pyi +4 -4
  4. {markdownify-1.2.2 → markdownify-1.2.3}/markdownify.egg-info/PKG-INFO +1 -1
  5. {markdownify-1.2.2 → markdownify-1.2.3}/pyproject.toml +1 -1
  6. {markdownify-1.2.2 → markdownify-1.2.3}/.github/workflows/python-app.yml +0 -0
  7. {markdownify-1.2.2 → markdownify-1.2.3}/.github/workflows/python-publish.yml +0 -0
  8. {markdownify-1.2.2 → markdownify-1.2.3}/.gitignore +0 -0
  9. {markdownify-1.2.2 → markdownify-1.2.3}/LICENSE +0 -0
  10. {markdownify-1.2.2 → markdownify-1.2.3}/MANIFEST.in +0 -0
  11. {markdownify-1.2.2 → markdownify-1.2.3}/README.rst +0 -0
  12. {markdownify-1.2.2 → markdownify-1.2.3}/markdownify/main.py +0 -0
  13. {markdownify-1.2.2 → markdownify-1.2.3}/markdownify/py.typed +0 -0
  14. {markdownify-1.2.2 → markdownify-1.2.3}/markdownify.egg-info/SOURCES.txt +0 -0
  15. {markdownify-1.2.2 → markdownify-1.2.3}/markdownify.egg-info/dependency_links.txt +0 -0
  16. {markdownify-1.2.2 → markdownify-1.2.3}/markdownify.egg-info/entry_points.txt +0 -0
  17. {markdownify-1.2.2 → markdownify-1.2.3}/markdownify.egg-info/not-zip-safe +0 -0
  18. {markdownify-1.2.2 → markdownify-1.2.3}/markdownify.egg-info/requires.txt +0 -0
  19. {markdownify-1.2.2 → markdownify-1.2.3}/markdownify.egg-info/top_level.txt +0 -0
  20. {markdownify-1.2.2 → markdownify-1.2.3}/setup.cfg +0 -0
  21. {markdownify-1.2.2 → markdownify-1.2.3}/shell.nix +0 -0
  22. {markdownify-1.2.2 → markdownify-1.2.3}/tox.ini +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: markdownify
3
- Version: 1.2.2
3
+ Version: 1.2.3
4
4
  Summary: Convert HTML to markdown.
5
5
  Author-email: Matthew Tretter <m@tthewwithanm.com>
6
6
  Project-URL: Homepage, http://github.com/matthewwithanm/python-markdownify
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: markdownify
3
- Version: 1.2.2
3
+ Version: 1.2.3
4
4
  Summary: Convert HTML to markdown.
5
5
  Author-email: Matthew Tretter <m@tthewwithanm.com>
6
6
  Project-URL: Homepage, http://github.com/matthewwithanm/python-markdownify
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "markdownify"
7
- version = "1.2.2"
7
+ version = "1.2.3"
8
8
  authors = [{name = "Matthew Tretter", email = "m@tthewwithanm.com"}]
9
9
  description = "Convert HTML to markdown."
10
10
  readme = "README.rst"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes