Skip to main content

Tell appart Markdown and reStructuredText.

Project description

mdorrst

https://img.shields.io/pypi/v/mdorrst.svg https://img.shields.io/travis/JulienPalard/mdorrst.svg

Tell appart Markdown and reStructuredText.

  • Free software: MIT license

Usage

The package exposes a single function, sniff(content), trying to deduce the format used, returning it as a string: md, rst or txt:

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

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.4.0 (2017-04-27)

  • Simplify API.

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.

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
mdorrst-0.4.0-py2.py3-none-any.whl (4.9 kB) Copy SHA256 hash SHA256 Wheel py2.py3
mdorrst-0.4.0.tar.gz (2.6 MB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page