Skip to main content

Available extensions

At the moment 2 extensions available:

  1. autobr - for converting line breaks to br-tags

  2. autolink - for automatically converting urls to links

Installation

Get source from GitHub:

$ git clone git://github.com/05bit/python-mdxflavours.git

and add mdxflavours to PYTHONPATH:

$ export PYTHONPATH=$PYTHONPATH:$(pwd)/mdxflavours/

or:

$ cd mdxflavours
$ python setup.py install

Note: importing package mdxflavours automatically adds required path to system paths.

Usage

Example for auto line breaks:

>>> import markdown
>>> markdown.markdown(u'And may the force  \nbe with you!') # no extension
>>> u'<p>And may the force<br />\nbe with you!</p>'
>>> markdown.markdown(u'And may the force\nbe with you!', extensions=['autobr'])
>>> u'<p>And may the force<br />\nbe with you!</p>'

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mdxflavours-0.9.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file mdxflavours-0.9.tar.gz.

File metadata

  • Download URL: mdxflavours-0.9.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mdxflavours-0.9.tar.gz
Algorithm Hash digest
SHA256 bf9b45f95868316310ad229c231026aa5fea967193f37381b36cb4706e2c9c65
MD5 e761e162eba0d8e2bccce384a08ce60b
BLAKE2b-256 3e9c5278b9a8439ab586530fb8c91661fb0052fde231ceafde24c836616c77f7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0 This release

1 file

0.9

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