python273 / telegraph

Telegraph API wrapper | Telegra.ph
https://pypi.org/project/telegraph/
MIT License
287 stars 43 forks source link

nodes_to_html will mute the parameter `nodes` during conversion #26

Closed weakish closed 2 years ago

weakish commented 4 years ago
print(content)
html = nodes_to_html(content)
print(html)
print(content)

Output:

[{'tag': 'p', 'children': ['hello']}]
<p>hello</p>
[{'tag': 'p', 'children': []}]
python273 commented 2 years ago

Fixed in 2.0.1