Skip to main content

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.

Metadata

Release files for mdorrst 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mdorrst 0.4.0
File Size Uploaded
mdorrst-0.4.0.tar.gz 2.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for mdorrst 0.4.0
File Interpreter ABI Platform
mdorrst-0.4.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 2.6 MB

Release files / mdorrst-0.4.0.tar.gz

Download URL mdorrst-0.4.0.tar.gz
Size 2.6 MB
Tags Source
SHA-256 checksum
How to use checksums
02b8a7f6d7fd0b13a9c010aa07ad42b6b15bda12043cb45f91923a9a880c22e7
BLAKE2b-256 checksum
How to use checksums
53eb7e582e27724b8b71c5675d9eb6b2522a2972deb05ae4e862b1b9159f240d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / mdorrst-0.4.0-py2.py3-none-any.whl

Download URL mdorrst-0.4.0-py2.py3-none-any.whl
Size 4.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
c9a4c6f7d5db30d21b8849df5ed7cb1d75ae444e3bc0d6d92247a81b5d680d32
BLAKE2b-256 checksum
How to use checksums
1815061c13f04b26fe2209c1d231e6783264f5a5d6e38653ebbb10212d48178c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page