2013-07-31 21:59:35 -04:00
2013-07-31 21:58:48 -04:00
2013-07-31 21:59:35 -04:00
2013-07-31 16:55:30 -04:00
2013-07-31 16:55:53 -04:00
2013-07-31 17:20:36 -04:00
2013-07-31 17:20:32 -04:00
2013-07-31 18:01:52 -04:00

Installation
============

``pip install markdownify``


Usage
=====

Convert some HTML to Markdown:

.. code:: python

    from markdownify import markdownify as md
    md('<b>Yay</b> <a href="http://github.com">GitHub</a>')  # > '**Yay** [GitHub](http://github.com)'

Specify tags to exclude (blacklist):

.. code:: python

    from markdownify import markdownify as md
    md('<b>Yay</b> <a href="http://github.com">GitHub</a>', strip=['a'])  # > '**Yay** GitHub'

\...or specify the tags you want to include (whitelist):

.. code:: python

    from markdownify import markdownify as md
    md('<b>Yay</b> <a href="http://github.com">GitHub</a>', convert=['b'])  # > '**Yay** GitHub'


Development
===========

To run tests:

``python setup.py test``

To lint:

``python setup.py lint``
Description
Convert HTML to Markdown
Readme MIT 673 KiB
Languages
Python 99.7%
Nix 0.3%