Skip to main content

An mdformat plugin for `gfm_alerts`.

Project description

mdformat-gfm-alerts

Build Status PyPI version

An mdformat plugin for GFM Alerts

mdformat Usage

Add this package wherever you use mdformat and the plugin will be auto-recognized. No additional configuration necessary. See additional information on mdformat plugins here

Pre-Commit

repos:
  - repo: https://github.com/executablebooks/mdformat
    rev: 0.7.19
    hooks:
      - id: mdformat
        additional_dependencies:
          - mdformat-gfm-alerts

pipx/uv

pipx install mdformat
pipx inject mdformat mdformat-gfm-alerts

Or with uv:

uv tool run --from mdformat-gfm-alerts mdformat

HTML Rendering

To generate HTML output, gfm_alerts_plugin can be imported from mdit_plugins. For more guidance on MarkdownIt, see the docs: https://markdown-it-py.readthedocs.io/en/latest/using.html#the-parser

from markdown_it import MarkdownIt

from mdformat_gfm_alerts.mdit_plugins import gfm_alerts_plugin

md = MarkdownIt()
md.use(gfm_alerts_plugin)

text = "... markdown example ..."
md.render(text)
# <div>
#
# </div>

Contributing

See CONTRIBUTING.md

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_gfm_alerts-1.0.2.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

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

mdformat_gfm_alerts-1.0.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file mdformat_gfm_alerts-1.0.2.tar.gz.

File metadata

  • Download URL: mdformat_gfm_alerts-1.0.2.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for mdformat_gfm_alerts-1.0.2.tar.gz
Algorithm Hash digest
SHA256 4881199e28865fdd21b81e856e07a9ceeaa63253b153a96e1127a4bbe7f0b53c
MD5 10c7033784c4ea66b90d264a76575d91
BLAKE2b-256 6f22c3122c0cb35b33423691903bed134a068f8d6d15abb76d62d8ed2ced0877

See more details on using hashes here.

File details

Details for the file mdformat_gfm_alerts-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mdformat_gfm_alerts-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2cf914cce33e7ca3d0847e8e410cce961d2b22b96d63ca88413ebc177238ccff
MD5 ef1f8ee3d23a27f84a8517ac90e90a1b
BLAKE2b-256 428ebfcc4428152ab8e7ab7fa1a9e49d11fb1e01d703255e429792eb4e34da97

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