`pip install prlps_typo`
```python
from prlps_typo import to_html_typograf
from prlps_typo import to_markdown_typograf
bad_md_text = """
# (с) заголовок из маркдауна
## это - подзаголовок
* [ссылка](https://github.com/gniloyprolaps/prlps_typo)
> "цитата" на 1000000руб.
- это - пункт 1
- тут,пункт 2
"""
bad_html_text = """
<h1>заголовок из хтмл(tm)</h1>
<h2>это - подзаголовок!!?</h2>
<ul>
<li><a href="https://github.com/gniloyprolaps/prlps_typo">мда.... ссылка</a></li>
</ul>
<blockquote>
<p>"цитата" на 1000000руб.</p>
</blockquote>
<ul>
<li>это - пункт 1....</li>
<li>тут,пункт №№2</li>
</ul>
"""
typo = to_markdown_typograf(bad_html_text)
print(typo)
print('\n---\n')
typo = to_markdown_typograf(bad_md_text)
print(typo)
print('\n---\n')
typo = to_html_typograf(bad_html_text)
print(typo)
print('\n---\n')
typo = to_html_typograf(bad_md_text)
print(typo)
print('\n---\n')
```
Raw data
{
"_id": null,
"home_page": "https://github.com/gniloyprolaps/prlps_typo",
"name": "prlps-typo",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": null,
"author": "prolapser",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/f9/63/d4d2b1d67831f529284ff8c9286339b0e4e44e90263b63c4bc0382998d1d/prlps_typo-0.0.2.tar.gz",
"platform": null,
"description": "`pip install prlps_typo`\n\n```python\n\nfrom prlps_typo import to_html_typograf\nfrom prlps_typo import to_markdown_typograf\n\nbad_md_text = \"\"\"\n# (\u0441) \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438\u0437 \u043c\u0430\u0440\u043a\u0434\u0430\u0443\u043d\u0430\n\n## \u044d\u0442\u043e - \u043f\u043e\u0434\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a\n\n* [\u0441\u0441\u044b\u043b\u043a\u0430](https://github.com/gniloyprolaps/prlps_typo)\n\n> \"\u0446\u0438\u0442\u0430\u0442\u0430\" \u043d\u0430 1000000\u0440\u0443\u0431.\n\n- \u044d\u0442\u043e - \u043f\u0443\u043d\u043a\u0442 1\n- \u0442\u0443\u0442,\u043f\u0443\u043d\u043a\u0442 2\n\n\"\"\"\n\nbad_html_text = \"\"\"\n<h1>\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438\u0437 \u0445\u0442\u043c\u043b(tm)</h1>\n<h2>\u044d\u0442\u043e - \u043f\u043e\u0434\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a!!?</h2>\n<ul>\n<li><a href=\"https://github.com/gniloyprolaps/prlps_typo\">\u043c\u0434\u0430.... \u0441\u0441\u044b\u043b\u043a\u0430</a></li>\n</ul>\n<blockquote>\n<p>\"\u0446\u0438\u0442\u0430\u0442\u0430\" \u043d\u0430 1000000\u0440\u0443\u0431.</p>\n</blockquote>\n<ul>\n<li>\u044d\u0442\u043e - \u043f\u0443\u043d\u043a\u0442 1....</li>\n<li>\u0442\u0443\u0442,\u043f\u0443\u043d\u043a\u0442 \u2116\u21162</li>\n</ul>\n\"\"\"\n\ntypo = to_markdown_typograf(bad_html_text)\nprint(typo)\nprint('\\n---\\n')\ntypo = to_markdown_typograf(bad_md_text)\nprint(typo)\nprint('\\n---\\n')\ntypo = to_html_typograf(bad_html_text)\nprint(typo)\nprint('\\n---\\n')\ntypo = to_html_typograf(bad_md_text)\nprint(typo)\nprint('\\n---\\n')\n\n```\n",
"bugtrack_url": null,
"license": "LICENSE.txt",
"summary": "\u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0432 Markdown \u0438 HTML",
"version": "0.0.2",
"project_urls": {
"Homepage": "https://github.com/gniloyprolaps/prlps_typo"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "77bfb3a4a56dc493b4f0532870e59d23a6aa911ac897f3cd3ac98a95aec7d4ec",
"md5": "2fb111b1341633bfad801da1b68f5c0a",
"sha256": "a9fbe51d0a76a9a81166509e19f98a274abb570f07d6b5ce04310458aa4661a5"
},
"downloads": -1,
"filename": "prlps_typo-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2fb111b1341633bfad801da1b68f5c0a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 20157,
"upload_time": "2024-12-24T22:32:36",
"upload_time_iso_8601": "2024-12-24T22:32:36.146257Z",
"url": "https://files.pythonhosted.org/packages/77/bf/b3a4a56dc493b4f0532870e59d23a6aa911ac897f3cd3ac98a95aec7d4ec/prlps_typo-0.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f963d4d2b1d67831f529284ff8c9286339b0e4e44e90263b63c4bc0382998d1d",
"md5": "d0b97aa367286773fd495ee26feb0aa6",
"sha256": "fba2309b581d371b1e8450750de3949c70c16789a10976322d7d961accb8803c"
},
"downloads": -1,
"filename": "prlps_typo-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "d0b97aa367286773fd495ee26feb0aa6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 20765,
"upload_time": "2024-12-24T22:32:37",
"upload_time_iso_8601": "2024-12-24T22:32:37.128940Z",
"url": "https://files.pythonhosted.org/packages/f9/63/d4d2b1d67831f529284ff8c9286339b0e4e44e90263b63c4bc0382998d1d/prlps_typo-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-24 22:32:37",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "gniloyprolaps",
"github_project": "prlps_typo",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "py_mini_racer",
"specs": []
},
{
"name": "html2text",
"specs": []
},
{
"name": "mistune",
"specs": []
},
{
"name": "httpx",
"specs": []
}
],
"lcname": "prlps-typo"
}