Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Python-Markdown extension to allow for superscript text.

Project Description

Latest Release:

Compatibility:

Tests:

Read Me

An extension to the Python Markdown project which adds the ability to superscript text. To do so, the character ^ becomes a Markdown tag for text meant to be superscripted, and is replaced with the HTML sup tag.

For example, given the text:

2^10^ is 1024.

… using Markdown with this extension will output:

<p>2<sup>10</sup> is 1024.</p>

This project is provided under the Simplified (2 Clause) BSD license, provided in full in the LICENSE file.

Installation

Dependencies:

  • Python 2.7, 3.3+
  • Markdown 2.5+ (Tested against latest patch version of Markdown 2.5 and 2.6)

To install the latest stable release (recommended):

pip install MarkdownSuperscript

To install the development version:

pip install git+git://github.com/jambonrose/markdown_superscript_extension.git

Basic Usage

Python

>>> from markdown import markdown
>>> text = "2^10^ is 1024."
>>> markdown(text, ['superscript'])
'<p>2<sup>10</sup> is 1024.</p>'

Command Line

$ echo '2^10^ is 1024.' > text.md
$ python -m markdown -o html5 -x 'superscript' -f text.html text.md
Release History

Release History

This version
History Node

2.0.0

History Node

1.0.1

History Node

1.0

History Node

1.0c1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
MarkdownSuperscript-2.0.0-py2.py3-none-any.whl (5.3 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Apr 17, 2017
MarkdownSuperscript-2.0.0.tar.gz (4.3 kB) Copy SHA256 Checksum SHA256 Source Apr 17, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting