pip install prlps_typo
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')
Metadata
Release files for prlps-typo 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| prlps_typo-0.0.3.tar.gz | 20.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| prlps_typo-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 41.0 kB
Release files / prlps_typo-0.0.3.tar.gz
| Download URL | prlps_typo-0.0.3.tar.gz |
|---|---|
| Size | 20.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e716e549e0f6ba9d02773461b2a4cda0a55657378b9aa71172e07fae8e6e0ccf
|
|
BLAKE2b-256 checksum How to use checksums |
8a64824ba18155fbda651dd35dda6b1f8dc03d6b069acac192ab4e4fb188bbb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / prlps_typo-0.0.3-py3-none-any.whl
| Download URL | prlps_typo-0.0.3-py3-none-any.whl |
|---|---|
| Size | 20.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f2455fc3bdcc172339b68835a9c7ce86a9feea9fbd57c50f3e1d12d1c888ac8c
|
|
BLAKE2b-256 checksum How to use checksums |
765805ffb1d83c2132c5638d10e835f00877f46b826a4e7a71810685ff05c663
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|