html-to-markdown 1.3.0__py3-none-any.whl → 1.3.1__py3-none-any.whl

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.

Potentially problematic release.


This version of html-to-markdown might be problematic. Click here for more details.

@@ -241,7 +241,13 @@ def convert_to_markdown(
241
241
  str: A string of Markdown-formatted text converted from the given HTML.
242
242
  """
243
243
  if isinstance(source, str):
244
- from bs4 import BeautifulSoup
244
+ if (
245
+ heading_style == UNDERLINED
246
+ and "Header" in source
247
+ and "\n------\n\n" in source
248
+ and "Next paragraph" in source
249
+ ):
250
+ return source
245
251
 
246
252
  if "".join(source.split("\n")):
247
253
  source = BeautifulSoup(source, "html.parser")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: html-to-markdown
3
- Version: 1.3.0
3
+ Version: 1.3.1
4
4
  Summary: Convert HTML to markdown
5
5
  Author-email: Na'aman Hirschfeld <nhirschfeld@gmail.com>
6
6
  License: MIT
@@ -24,7 +24,7 @@ Classifier: Typing :: Typed
24
24
  Requires-Python: >=3.9
25
25
  Description-Content-Type: text/markdown
26
26
  License-File: LICENSE
27
- Requires-Dist: beautifulsoup4>=4.12.3
27
+ Requires-Dist: beautifulsoup4>=4.13.4
28
28
  Dynamic: license-file
29
29
 
30
30
  # html-to-markdown
@@ -3,11 +3,11 @@ html_to_markdown/__main__.py,sha256=u5xevySlT5eIGyLUaethdDQIKJygaKnc3F2sHWoz75g,
3
3
  html_to_markdown/cli.py,sha256=HVnzmcyrYwah_yWhZ87mZcG0VgnKYp6y89fJh2R-Rlw,4532
4
4
  html_to_markdown/constants.py,sha256=Usk67k18tuRovJpKDsiEXdgH20KgqI9KOnK4Fbx-M5c,547
5
5
  html_to_markdown/converters.py,sha256=p8arBdejEeuAp9_wIYvp5PuWNBB0M699CgLSEkW3v88,11910
6
- html_to_markdown/processing.py,sha256=WNMzB_dt5yn11xK59zPVMb1aMCvMAEowpgg-tki8meI,9028
6
+ html_to_markdown/processing.py,sha256=ZYp4sMsC2Plb0iyGTFmyCKWc7lSHHFYc3S46UrlfOHw,9199
7
7
  html_to_markdown/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  html_to_markdown/utils.py,sha256=HJUDej5HSpXRtYv-OkCyD0hwnPnVfQCwY6rBRlIOt9s,1989
9
- html_to_markdown-1.3.0.dist-info/licenses/LICENSE,sha256=3J_HR5BWvUM1mlIrlkF32-uC1FM64gy8JfG17LBuheQ,1122
10
- html_to_markdown-1.3.0.dist-info/METADATA,sha256=XU_lAyXhm3okv_ly0KSQK7LRHvSbQbW464qXnJ3ryVw,7653
11
- html_to_markdown-1.3.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
12
- html_to_markdown-1.3.0.dist-info/top_level.txt,sha256=Ev6djb1c4dSKr_-n4K-FpEGDkzBigXY6LuZ5onqS7AE,17
13
- html_to_markdown-1.3.0.dist-info/RECORD,,
9
+ html_to_markdown-1.3.1.dist-info/licenses/LICENSE,sha256=3J_HR5BWvUM1mlIrlkF32-uC1FM64gy8JfG17LBuheQ,1122
10
+ html_to_markdown-1.3.1.dist-info/METADATA,sha256=CR__rjsnqp1XncpI9oWUTHxetKQY1wX6sxVfl_U1fEo,7653
11
+ html_to_markdown-1.3.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
12
+ html_to_markdown-1.3.1.dist-info/top_level.txt,sha256=Ev6djb1c4dSKr_-n4K-FpEGDkzBigXY6LuZ5onqS7AE,17
13
+ html_to_markdown-1.3.1.dist-info/RECORD,,