Skip to main content

Adds reasonable spaces between Chinese and English and corrects the case of special nouns.

Project description

md-format

A pre-commit hook that formats .md files. It automatically adds reasonable spaces between Chinese and English and corrects the case of special nouns.

For pre-commit: see https://github.com/pre-commit/pre-commit

Using md-format with pre-commit

Add this to your .pre-commit-config.yaml :

- repo: https://github.com/PKUcoldkeyboard/md-format
  rev: 0.0.4
  hooks:
  - id: md-format

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

md_format_hook-0.0.4.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

md_format_hook-0.0.4-py2.py3-none-any.whl (3.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file md_format_hook-0.0.4.tar.gz.

File metadata

  • Download URL: md_format_hook-0.0.4.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for md_format_hook-0.0.4.tar.gz
Algorithm Hash digest
SHA256 1b69c89ad53d25c14610a1d314514eb7f84941b76387e4cb9a9c12cd8ee32ba0
MD5 c49a250a4c0cdf21eb5c70a5db452047
BLAKE2b-256 fa10bb9d5c9251d3ca6a5644bf598a0d091fb6ed6e98434ed57d6f4e4004fa67

See more details on using hashes here.

File details

Details for the file md_format_hook-0.0.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for md_format_hook-0.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 42ff03cceca64375711a9af2684ff18f667bcb1c44318267b42309e037fec2aa
MD5 a76736863b52e3c43b8571f6eb252a73
BLAKE2b-256 1a1200265f6c4ee90bdca92c08572117992e79b54c67dbaf9e8dda5970f2c341

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