kdeldycke / mdx_titlecase

Proper title-casing for Python's Markdown library.

Home Page:https://pypi.org/project/mdx_titlecase/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Markdown title-casing extension

Python's Markdown extension to apply proper English title-casing.

This project use titlecase module under the hood. Transformation is applied on content enclosed in <h1> to <h6> HTML tags. Meta-Data extension is supported so that document title can be transformed too.

Stable release: Last release Software license Requirements freshness Popularity

Development: Unit-tests status Coverage Status Code Quality

Install

This package is available on PyPi, so you can install the latest stable release and its dependencies with a simple pip call:

See also pip installation instructions.

Configuration

Parameter Default value Description
metadata ['title', ] List of metadata keys to which apply titlecasing.

Development

Check out latest development branch:

Run unit-tests:

Run PEP8 and Pylint code style checks:

Stability policy

Here is a bunch of rules we're trying to follow regarding stability:

  • Patch releases (0.x.n0.x.(n+1) upgrades) are bug-fix only. These releases must not break anything and keeps backward-compatibility with 0.x.* and 0.(x-1).* series.
  • Minor releases (0.n.*0.(n+1).0 upgrades) includes any non-bugfix changes. These releases must be backward-compatible with any 0.n.* version but are allowed to drop compatibility with the 0.(n-1).* series and below.
  • Major releases (n.*.*(n+1).0.0 upgrades) are not planned yet: we're still in beta and the final feature set of the 1.0.0 release is not decided yet.

Release process

Start from the develop branch:

Revision should already be set to the next version, so we just need to set the released date in the changelog:

Create a release commit, tag it and merge it back to main branch:

Push packaging to the test cheeseshop:

Publish packaging to PyPi:

Bump revision back to its development state:

Now if the next revision is no longer bug-fix only:

License

This software is licensed under the GNU General Public License v2 or later (GPLv2+).

About

Proper title-casing for Python's Markdown library.

https://pypi.org/project/mdx_titlecase/

License:GNU General Public License v2.0


Languages

Language:Python 100.0%