Metadata-Version: 2.0
Name: MarkdownSuperscript
Version: 1.0.1
Summary: Python-Markdown extension to allow for superscript text.
Home-page: https://github.com/jambonrose/markdown_superscript_extension
Author: Andrew Pinkham
Author-email: hello at andrewsforge dot com
License: Simplified BSD License
Keywords: text filter markdown html superscript
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Text Processing :: Filters
Classifier: Topic :: Text Processing :: Markup :: HTML
Requires-Dist: Markdown (>=2.4)

An extension to the `Python Markdown`_ project which adds the ability to superscript text. To do so, the character :code:`^` becomes a Markdown tag for text meant to be superscripted, and is replaced with the HTML :code:`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`_.

Installation
------------

::

    pip install MarkdownSuperscript

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

.. _`Python Markdown`: https://pypi.python.org/pypi/Markdown
.. _`Simplified (2 Clause) BSD license`: http://choosealicense.com/licenses/bsd-2-clause/


