Skip to main content

mdformat-simple-breaks

Build Status codecov.io PyPI version

An mdformat plugin to render thematic breaks using three dashes instead of 70 underscores.

Install

Install with:

pip install mdformat-simple-breaks

Usage as a pre-commit hook

Add the following to your .pre-commit-config.yaml:

- repo: https://github.com/executablebooks/mdformat
  rev: 0.7.13  # Use the ref you want to point at
  hooks:
    - id: mdformat
      additional_dependencies:
        - mdformat-simple-breaks

Plugin rationale

The CommonMark specification states that thematic breaks, which are to be rendered as horizontal rules <hr>, should be coded as:

A line consisting of optionally up to three spaces of indentation, followed by a sequence of three or more matching -, _, or * characters, each followed optionally by any number of spaces or tabs

As a result, most of the Markdown guides and cheat sheets show a line made of three dash symbols as an example of a thematic break:

---

On the other hand, mdformat renders these thematics breaks by default as a line of 70 consecutive underscore characters:

________________________________________________________________________________

This is an explicit style decision that is not going to be reverted and for which no configuration will be added.

As a result, this plugin has been created to override that decision and go back to the three - thematic breaks.

Metadata

Release files for mdformat_simple_breaks 0.0.1

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

Source distribution (sdist)

Source distribution for mdformat_simple_breaks 0.0.1
File Size Uploaded Provenance Actions
mdformat_simple_breaks-0.0.1.tar.gz 6.5 kB Without provenance Details for mdformat_simple_breaks-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mdformat_simple_breaks 0.0.1
File Interpreter ABI Platform Actions
mdformat_simple_breaks-0.0.1-py3-none-any.whl Python 3 none any Details for mdformat_simple_breaks-0.0.1-py3-none-any.whl

Total release size: 10.5 kB

Release files / mdformat_simple_breaks-0.0.1.tar.gz

Download URL mdformat_simple_breaks-0.0.1.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
36dbd4981e177526c08cfd9b36272dd2caf230d7a2c2834c852e57a1649f676a
BLAKE2b-256 checksum
How to use checksums
62af5b88367b69084c8bc60cfc4103eb62482655f8dbbb6dc81431aa27455b22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.1

Release files / mdformat_simple_breaks-0.0.1-py3-none-any.whl

Download URL mdformat_simple_breaks-0.0.1-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3dde7209d509620fdd2bf11e780ae32d5f61a80ea145a598252e2703f8571407
BLAKE2b-256 checksum
How to use checksums
201d8e992c96d7ac86f85e1b4094d3887658376443b56679b834de8b23f4f849
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.1

Security for mdformat_simple_breaks 0.0.1

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.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

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