Skip to content

JulienPalard/mdorrst

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mdorrst

PyPI PyPI Tests

Tell appart Markdown and reStructuredText.

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'

About

Tell appart Markdown and reStructuredText

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages