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.

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.2.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.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mdformat_lists-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 59ca8ec9bc549fa6a0073c889dcf0154247594c91bf2ad19a0707f8ee5c1ffa6
MD5 bc5646ac9edcbc0febbbb24671021f98
BLAKE2b-256 76bee564197efaab95678a20839318c6951838897c06ecb254e4af8fc6c1e723

See more details on using hashes here.

Provenance

The following attestation bundles were made for mdformat_lists-0.0.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: mdformat_lists-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.8 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 22e70c43dc1e742631b1f3fb2f85b81d188a313d737ab4beec208468addb278d
MD5 3ea430f35d313d3bd1cc86a6e872e3c5
BLAKE2b-256 f7d87c6b37ac94f99c84a053fb7ed75abad3f8c97c751b7f81943488db6424e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for mdformat_lists-0.0.2-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