Metadata-Version: 2.1
Name: mwcomposerfromhell
Version: 0.2.1
Summary: Convert the parsed MediaWiki wikicode (using mwparserfromhell) to HTML.
Home-page: https://github.com/clokep/mwcomposerfromhell
Author: Patrick Cloke
Author-email: clokep@patrick.cloke.us
License: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Internet
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: License :: OSI Approved :: ISC License (ISCL)
Requires-Dist: mwparserfromhell (>=0.5)

mwcomposerfromhell
##################

.. image:: https://travis-ci.org/clokep/mwcomposerfromhell.svg?branch=master
    :target: https://travis-ci.org/clokep/mwcomposerfromhell

**mwcomposerfromhell** is a Python package that provides an easy-to-use composer
to convert the MediaWiki `Wikicode`_ to HTML via `mwparserfromhell`_. It supports
Python 3.

.. _Wikicode: https://en.wikipedia.org/wiki/Help:Wikitext
.. _mwparserfromhell: https://mwparserfromhell.readthedocs.io

Usage
-----

Normal usage is rather straightforward (where ``text`` is page text)

.. code-block:: python

    >>> import mwparserfromhell
    >>> import mwcomposerfromhell
    >>> wikicode = mwparserfromhell.parse(text)
    >>> html = mwcomposerfromhell.compose(wikicode)

``html`` is a ``str`` object for the output HTML.


