Skip to main content
Release file added late

1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.

prettymd

A tool that formats markdown text in Chinese.

Install

  • 从 pypi 安装
    pip install prettymd
    

Features

  • 在中英文之间添加空格

    $ python -m prettymd "我是中文nihao呀"
    我是中文 nihao 呀
    
  • 将英文变为代码风格。指定 style = 'code',将英文用反引号包裹起来

    $ python -m prettymd "我是中文nihao呀" -s code
    我是中文 `nihao` 呀
    
  • 从文件读取内容

    $ cat .\tests\testfile.md
    摘要算法就是通过摘要函数f()对任意长度的数据data计算出固定长度的摘要digest,目的是为了发现原始数据是否被人篡改过。
    
    $ python -m prettymd -f .\tests\testfile.md
    摘要算法就是通过摘要函数 f() 对任意长度的数据 data 计算出固定长度的摘要 digest,目的是为了发现原始数据是否被人篡改过。
    
  • 输出到指定文件

    $ # -o 指定输出文件路径
    $ python -m prettymd -f .\tests\testfile.md -o testfile.md
    
    $ cat testfile.md
    摘要算法就是通过摘要函数 f() 对任意长度的数据 data 计算出固定长度的摘要 digest,目的是为了发现原始数据是否被人篡改过。
    
  • 代码调用

    >>> from prettymd import format
    >>> format('这是一个示例rst文档')
    '这是一个实例 rst 文档'
    
    >>> from prettymd import format
    >>> format('这是一个示例rst文档', style='code')
    '这是一个实例 `rst` 文档'
    
    >>> # 为标题添加索引
    >>> from prettymd import format
    >>> print(format("""
    ## h2
    ### h3
    ## h22
    #### h4
    """))
    
    ## 1. h2
    ### 1.1. h3
    ## 2. h22
    #### 2.0.1. h4
    

Metadata

Release files for prettymd 0.1.111

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

File added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distribution (sdist)

Source distribution for prettymd 0.1.111
File Size Uploaded Provenance Actions
prettymd-0.1.111.tar.gz 14.6 kB Without provenance Details for prettymd-0.1.111.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for prettymd 0.1.111
File Interpreter ABI Platform Actions
prettymd-0.1.111-py2.py3-none-any.whl Python 2, Python 3 none any Details for prettymd-0.1.111-py2.py3-none-any.whl

Total release size: 21.6 kB

Release files / prettymd-0.1.111.tar.gz

Download URL prettymd-0.1.111.tar.gz
Size 14.6 kB
Tags Source
SHA-256 checksum
How to use checksums
01afa0cc8c53f9649f30b15a8967f72255953444de0bd5cdde1d2095498de57e
BLAKE2b-256 checksum
How to use checksums
81cd07563727ff5e45445fdc03893a43771cef5b00341a4a7758058da84b2997
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.13

Release files / prettymd-0.1.111-py2.py3-none-any.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL prettymd-0.1.111-py2.py3-none-any.whl
Size 7.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
473738ec082cf10598ab0cf94e6bfa4c1cff31a49e95ea0c1ed572939b2e4e43
BLAKE2b-256 checksum
How to use checksums
f19203dfb5297909e39df41f77ba79cd2d2c4486c1b88945a52fbc91a204f749
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Security for prettymd 0.1.111

Upload timing

Release file added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.


Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page