Skip to main content

исправление типографии в 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


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.3.tar.gz (20.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prlps_typo-0.0.3-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file prlps_typo-0.0.3.tar.gz.

File metadata

  • Download URL: prlps_typo-0.0.3.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for prlps_typo-0.0.3.tar.gz
Algorithm Hash digest
SHA256 e716e549e0f6ba9d02773461b2a4cda0a55657378b9aa71172e07fae8e6e0ccf
MD5 b473e96f01d3fd0d00eeceedf3f20933
BLAKE2b-256 8a64824ba18155fbda651dd35dda6b1f8dc03d6b069acac192ab4e4fb188bbb6

See more details on using hashes here.

File details

Details for the file prlps_typo-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: prlps_typo-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for prlps_typo-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f2455fc3bdcc172339b68835a9c7ce86a9feea9fbd57c50f3e1d12d1c888ac8c
MD5 1e077a1bd9a339f041bca4ea71b8ce49
BLAKE2b-256 765805ffb1d83c2132c5638d10e835f00877f46b826a4e7a71810685ff05c663

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page