html-to-markdown 2.4.2__cp310-abi3-macosx_11_0_arm64.whl → 2.5.0__cp310-abi3-macosx_11_0_arm64.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.

@@ -49,4 +49,4 @@ __all__ = [
49
49
  "markdownify",
50
50
  ]
51
51
 
52
- __version__ = "2.4.2"
52
+ __version__ = "2.5.0"
Binary file
html_to_markdown/api.py CHANGED
@@ -82,6 +82,7 @@ def _to_rust_options(
82
82
  encoding=options.encoding,
83
83
  debug=options.debug,
84
84
  strip_tags=list(options.strip_tags) if options.strip_tags else [],
85
+ preserve_tags=list(options.preserve_tags) if options.preserve_tags else [],
85
86
  )
86
87
 
87
88
 
Binary file
@@ -95,6 +95,9 @@ class ConversionOptions:
95
95
  strip_tags: set[str] | None = None
96
96
  """HTML tags to strip from output (output only text content, no markdown conversion)."""
97
97
 
98
+ preserve_tags: set[str] | None = None
99
+ """HTML tags to preserve as-is in the output (keep original HTML). Useful for complex elements like tables."""
100
+
98
101
  convert_as_inline: bool = False
99
102
  """Treat block elements as inline during conversion."""
100
103
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: html-to-markdown
3
- Version: 2.4.2
3
+ Version: 2.5.0
4
4
  Classifier: Development Status :: 5 - Production/Stable
5
5
  Classifier: Environment :: Console
6
6
  Classifier: Intended Audience :: Developers
@@ -0,0 +1,17 @@
1
+ html_to_markdown-2.5.0.dist-info/RECORD,,
2
+ html_to_markdown-2.5.0.dist-info/WHEEL,sha256=HtAbUhtjhH1WdiDuIy2CapdoAiKCwe6bij_Tlxr1lEg,131
3
+ html_to_markdown-2.5.0.dist-info/METADATA,sha256=-cJomvtoyyYuKadCinA5UZEO4Oc-0SFP4gozQZMW0bc,9199
4
+ html_to_markdown-2.5.0.dist-info/licenses/LICENSE,sha256=oQvPC-0UWvfg0WaeUBe11OJMtX60An-TW1ev_oaAA0k,1086
5
+ html_to_markdown-2.5.0.data/scripts/html-to-markdown,sha256=mTrDOF6GXv69CkGoDj8kfAZYxtxUraCrJn098XF9eWA,3884336
6
+ html_to_markdown/options.py,sha256=vImRfeHAeyAy0Lnt6cTPHGbj7mTdw8AEUgo19u7MAA0,5080
7
+ html_to_markdown/_html_to_markdown.abi3.so,sha256=uMIpbLa7N1jXzb2iYHWkD0-FMfxVP5oOwXvV-huAq0E,3701616
8
+ html_to_markdown/__init__.py,sha256=dyDrtQxQvh8ReI-5LVHgeR1cflevhIW838jFo5KRdpI,1358
9
+ html_to_markdown/api.py,sha256=uiNoieNXrcXTJI2_vV7ruDv9HKD7XFuosCAeqZL-C_Q,4944
10
+ html_to_markdown/_rust.pyi,sha256=pi6C_qAdB81qUlC89Dy1ZKC1JrpdnqVce-caJx3ekPA,2098
11
+ html_to_markdown/v1_compat.py,sha256=5DZA-fPMqZ5hYiA43rFaOAqshLS8MScbBnivDXuvQII,8034
12
+ html_to_markdown/cli.py,sha256=Rn-s3FZPea1jgCJtDzH_TFvOEiA_uZFVfgjhr6xyL_g,64
13
+ html_to_markdown/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
+ html_to_markdown/exceptions.py,sha256=aTASOzbywgfqOYjlw18ZkOWSxKff4EbUbmMua_73TGA,2370
15
+ html_to_markdown/cli_proxy.py,sha256=8Byrnok5-WkDWToaUeMcKi1xVr62PhZKygHymdrSfFE,3682
16
+ html_to_markdown/__main__.py,sha256=3Ic_EbOt2h6W88q084pkz5IKU6iY5z_woBygH6u9aw0,327
17
+ html_to_markdown/bin/html-to-markdown,sha256=mTrDOF6GXv69CkGoDj8kfAZYxtxUraCrJn098XF9eWA,3884336
@@ -1,17 +0,0 @@
1
- html_to_markdown-2.4.2.dist-info/RECORD,,
2
- html_to_markdown-2.4.2.dist-info/WHEEL,sha256=HtAbUhtjhH1WdiDuIy2CapdoAiKCwe6bij_Tlxr1lEg,131
3
- html_to_markdown-2.4.2.dist-info/METADATA,sha256=vGhdvLG3-aMXwy3nNJ9XVNbIj9nL7yjGiKMhyd4b6eo,9199
4
- html_to_markdown-2.4.2.dist-info/licenses/LICENSE,sha256=oQvPC-0UWvfg0WaeUBe11OJMtX60An-TW1ev_oaAA0k,1086
5
- html_to_markdown-2.4.2.data/scripts/html-to-markdown,sha256=3E-OwdhFM3UN3cNH6szdfWUkWbYztiK3RgaNB5fBepM,3867680
6
- html_to_markdown/options.py,sha256=9L_J2oC6pcdOwzjYJOBI3ykJxEvdALf-YtRebTZ-uL8,4922
7
- html_to_markdown/_html_to_markdown.abi3.so,sha256=vPT3rZnV1vePEi2LdKTg1kWJcccDDIMQO-FlZD7rOAc,3668544
8
- html_to_markdown/__init__.py,sha256=xgYw_46e2aHhjpD1TpRYE13-CpGHdmBuXU3zDHU4wlE,1358
9
- html_to_markdown/api.py,sha256=sXezV2iZb42s-za0hWWHFhihKjaMo6j_tx7e-0EyQPg,4860
10
- html_to_markdown/_rust.pyi,sha256=pi6C_qAdB81qUlC89Dy1ZKC1JrpdnqVce-caJx3ekPA,2098
11
- html_to_markdown/v1_compat.py,sha256=5DZA-fPMqZ5hYiA43rFaOAqshLS8MScbBnivDXuvQII,8034
12
- html_to_markdown/cli.py,sha256=Rn-s3FZPea1jgCJtDzH_TFvOEiA_uZFVfgjhr6xyL_g,64
13
- html_to_markdown/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
- html_to_markdown/exceptions.py,sha256=aTASOzbywgfqOYjlw18ZkOWSxKff4EbUbmMua_73TGA,2370
15
- html_to_markdown/cli_proxy.py,sha256=8Byrnok5-WkDWToaUeMcKi1xVr62PhZKygHymdrSfFE,3682
16
- html_to_markdown/__main__.py,sha256=3Ic_EbOt2h6W88q084pkz5IKU6iY5z_woBygH6u9aw0,327
17
- html_to_markdown/bin/html-to-markdown,sha256=3E-OwdhFM3UN3cNH6szdfWUkWbYztiK3RgaNB5fBepM,3867680