Skip to content

Commit 56979d7

Browse files
committed
Fix bug
1 parent f15c218 commit 56979d7

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
[TOC]
44

5+
## 1.7.0
6+
- Added API to add/remove HTML symbol conversions
7+
- Added HTML symbol conversion API to Python bindings
8+
- Fixed attribute parsing with whitespace around equals sign
9+
- Added full support for uppercase tags/attributes
10+
- Supported whitespace around tag names
11+
- Fixed issues with self-closing tags
12+
- Improved performance
13+
514
## 1.6.6
615
- Python: Fix wheels not uploaded
716

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.8...3.31)
2-
project(html2md VERSION 1.6.6 LANGUAGES CXX)
2+
project(html2md VERSION 1.7.0 LANGUAGES CXX)
33

44
set(PROJECT_HOMEPAGE_URL "https://tim-gromeyer.github.io/html2md/")
55
set(html2md_HOMEPAGE_URL "${PROJECT_HOMEPAGE_URL}")

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ description = "Transform your HTML into clean, easy-to-read markdown with pyhtml
1111
readme = "python/README.md"
1212
requires-python = ">=3.7"
1313
license = { text = "MIT" }
14-
version = "1.6.6"
14+
version = "1.7.0"
1515
classifiers = [
1616
"Intended Audience :: Developers",
1717
"License :: OSI Approved :: MIT License",

src/html2md.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ void Converter::CleanUpMarkdown() {
181181

182182
// Use swap instead of move assignment for better pre-C++11 compatibility
183183
md_.swap(buffer);
184-
TidyAllLines(&md_);
185184

186185
// Optimized replacement sequence
187186
const char *replacements[][2] = {

tests/python/test_advanced.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,11 @@ def test_html_entities():
119119
html = """
120120
<p>&quot;Double quotes&quot; &lt;less than&gt; &gt;greater than&lt; &amp; ampersand &nbsp; non-breaking space &rarr; right arrow</p>
121121
"""
122-
result = pyhtml2md.convert(html)
122+
options = pyhtml2md.Options()
123+
options.splitLines = False
124+
converter = pyhtml2md.Converter(html, options)
125+
result = converter.convert()
126+
123127
assert '"Double quotes"' in result
124128
assert "<less than>" in result
125129
assert ">greater than<" in result

0 commit comments

Comments
 (0)