Skip to main content

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

Project description

mdformat-lists

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.1.tar.gz (29.0 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.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mdformat_lists-0.0.1.tar.gz
  • Upload date:
  • Size: 29.0 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.1.tar.gz
Algorithm Hash digest
SHA256 b7b47082eccebf30b254604704e93e00f05d40931afa0f5b76d374628e45f9e6
MD5 4f27684acef7ae7893182bc8ca66c3aa
BLAKE2b-256 e1731c2c3b3b1aea184e3e5aaf2c31b64d341f0901cd8820012a937c0f442439

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mdformat_lists-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1b16788464bb69f7a0f7518aa975c9ea071483324933ef673518013323ecace1
MD5 d59208162dee7f16b433debede9eed09
BLAKE2b-256 54cf16b7b8fbc4530df01faac5d2645eedd30e4ebfd4fe33f7aed8e0187454de

See more details on using hashes here.

Provenance

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