Skip to main content

Python-Markdown extension for easy changelog tagging

Project description

mdx-changelog

Markdown extension to enable easy addition of changelog badges to your documentation

Installation

The easiest way to install Mdx-Changelog is to use pip

pip install mdx-changelog

Usage

import markdown

text = """;;fix;;"""
md = markdown.Markdown(extensions=["changelog"])
md.convert(text)
'<p><span class="badge badge-fix">Fix</span></p>'

# or
md = markdown.Markdown(extensions=["mdx_changelog.changelog"])
md.convert(text)
'<p><span class="badge badge-fix">Fix</span></p>'

# or 
from mdx_changelog import ChangelogExtension
md = markdown.Markdown(extensions=[ChangelogExtension()])

md.convert(text)
'<p><span class="badge badge-fix">Fix</span></p>'

Supported tags

The following tags are supported by default:

  • ;;fix;;
  • ;;change;; (or ;;changes;;, ;;changed;;)
  • ;;improvement;; (or ;;improvements;;, ;;enhancement;;, ;;enhancements;;)
  • ;;new;; (or ;;feature;;)
  • ;;efficiency;;
  • ;;docs;; (or ;;documentation;;)

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

markdown_changelog-0.0.1.tar.gz (6.1 kB view hashes)

Uploaded Source

Built Distribution

markdown_changelog-0.0.1-py3-none-any.whl (7.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page