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.

Source Distribution

mdorrst-0.4.0.tar.gz (2.6 MB view details)

Uploaded Source

Built Distribution

mdorrst-0.4.0-py2.py3-none-any.whl (4.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file mdorrst-0.4.0.tar.gz.

File metadata

  • Download URL: mdorrst-0.4.0.tar.gz
  • Upload date:
  • Size: 2.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mdorrst-0.4.0.tar.gz
Algorithm Hash digest
SHA256 02b8a7f6d7fd0b13a9c010aa07ad42b6b15bda12043cb45f91923a9a880c22e7
MD5 402007191ef3f38859458ac08b19174a
BLAKE2b-256 53eb7e582e27724b8b71c5675d9eb6b2522a2972deb05ae4e862b1b9159f240d

See more details on using hashes here.

File details

Details for the file mdorrst-0.4.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for mdorrst-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c9a4c6f7d5db30d21b8849df5ed7cb1d75ae444e3bc0d6d92247a81b5d680d32
MD5 aa56d4d5cd3a96226a051ae71bf512bb
BLAKE2b-256 1815061c13f04b26fe2209c1d231e6783264f5a5d6e38653ebbb10212d48178c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page