исправление типографии в Markdown и HTML
Project description
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')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
prlps_typo-0.0.1.tar.gz
(3.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file prlps_typo-0.0.1.tar.gz.
File metadata
- Download URL: prlps_typo-0.0.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a1f1adec14d5b61e990787eddc618bac7fb7622ea3935233f1adb774c862492
|
|
| MD5 |
73d86eb6f65627b4ccf733fa232df642
|
|
| BLAKE2b-256 |
e5d9d9e37636aa6a93d19239d6aac9777af7e7339bb7d92588f170cb63f83dfa
|
File details
Details for the file prlps_typo-0.0.1-py3-none-any.whl.
File metadata
- Download URL: prlps_typo-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
596e033376638bb15798a6ff6221f34384b0dd2a1b0ad3c0f7c5d5e680bb5638
|
|
| MD5 |
76ba66f28e673ca963cdc56bb376baf8
|
|
| BLAKE2b-256 |
dc12f3c5a854620a10e90abf95e764bf36a3d0b7ff5c04d534935c7eacb9e158
|