Metadata-Version: 2.0
Name: mdorrst
Version: 0.3.0
Summary: Tell appart Markdown and reStructuredText.
Home-page: https://github.com/JulienPalard/mdorrst
Author: Julien Palard
Author-email: julien@palard.fr
License: MIT license
Keywords: mdorrst
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5

=======
mdorrst
=======


.. image:: https://img.shields.io/pypi/v/mdorrst.svg
        :target: https://pypi.python.org/pypi/mdorrst

.. image:: https://img.shields.io/travis/JulienPalard/mdorrst.svg
        :target: https://travis-ci.org/JulienPalard/mdorrst

Tell appart Markdown and reStructuredText.


* Free software: MIT license

Usage
-----

The package exposes two functions, ``from_text`` and ``from_file``,
which both return one of ``md``, ``rst`` or ``txt`` according to the
*content* given.

``mdorrst.from_file(path)`` only reads the content of the file
 (without being influenced by the filename)::

  >>> import mdorrst
  >>> mdorrst.from_file("./README.rst")
  'rst'

``mdorrst.from_text`` works the same way, given a string::

  >>> import mdorrst
  >>> mdorrst.from_text("[hey](http://example.com)")
  'md'
  >>> mdorrst.from_text("`hey <http://example.com>`__")
  'rst'


Credits
---------

This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage


=======
History
=======

0.3.0 (2017-04-26)
------------------

* Python 2.7 support.


0.2.0 (2017-04-26)
------------------

* Expose ``from_text()``.


0.1.0 (2017-04-26)
------------------

* First release on PyPI.


