Skip to main content

An mdformat plugin to configure bullet characters for unordered lists and markers for ordered lists

Project description

mdformat-lists

Build Status codecov PyPI version PyPI Supported Python Versions

A mdformat plugin to configure list markers for unordered and ordered lists.

By default, mdformat uses - as the bullet character (alternating with * for consecutive lists) and . as the ordered list marker. This plugin allows you to choose between -, *, and + for bullets, and . and ) for ordered list markers.

Usage

Install with:

pip install mdformat-lists

Then simply run mdformat as usual:

mdformat <filename>

Configuration

Unordered list bullet

Configure the bullet character in .mdformat.toml:

[plugin.lists]
bullet = "*"

Or via the command line:

mdformat --bullet="*" <filename>

Valid values are - (default), *, and +.

Ordered list marker

Configure the ordered list marker in .mdformat.toml:

[plugin.lists]
ordered_marker = ")"

Or via the command line:

mdformat --ordered-marker=")" <filename>

Valid values are . (default) and ).

When multiple ordered lists appear consecutively, the plugin alternates between the primary and secondary marker (. and )) to prevent Markdown parsers from merging separate lists into one.

Contributing

Pull requests are welcome.

Development

Prerequisites: mise

git clone https://github.com/brendanmaguire/mdformat-lists.git
cd mdformat-lists
mise trust && mise install

Run tasks with mise, for example mise unit-test.

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

mdformat_lists-0.0.3.tar.gz (28.9 kB view details)

Uploaded Source

Built Distribution

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

mdformat_lists-0.0.3-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mdformat_lists-0.0.3.tar.gz
  • Upload date:
  • Size: 28.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mdformat_lists-0.0.3.tar.gz
Algorithm Hash digest
SHA256 357b899f339d2356aaf1563642ca683c4f9541a6c25cf543796b105002303c82
MD5 f2045f2cd968467553e044c17a45f5a5
BLAKE2b-256 c00fd57f217c797db71d76f50717359edb5bd989db4b90789f5046b5ec6b4ef3

See more details on using hashes here.

Provenance

The following attestation bundles were made for mdformat_lists-0.0.3.tar.gz:

Publisher: publish.yml on brendanmaguire/mdformat-lists

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: mdformat_lists-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mdformat_lists-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a795e40abdf5de3e078efde72bd2ee3a0dd92dd86baa24dde7e88ca4f5e98255
MD5 e98c11b6e6728ef839fac71552d57b5d
BLAKE2b-256 79e7e68ac4010c6026a041071d05e20f02152fba996433c05b9d8ddd8d7311f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for mdformat_lists-0.0.3-py3-none-any.whl:

Publisher: publish.yml on brendanmaguire/mdformat-lists

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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