Markdown is Hypertext.
Inspirational, fast, reversible, extendable, and filterable.
ॐ
>>> import hypermark
>>> content = "# fuck yea\nhttp://github.com"
>>> d = hypermark.text(content)
'<HyperText 4e65f3a109>'
>>> d.links
(u'http://github.com')
>>> d.hash
u'b0d842acde1988fa9e3f6dcb15008e4205fe16f5'
>>> print(d.html)
<h1>fuck yea</h1>
http://github.com
>>> d.filters('bleach').html
u'<h1>fuck yea</h1>\n<p>http://github.com</p>'
Feature ideas:
- link extraction
- diff generation
- sha generation
- md->html, html->md
- liting?
- header transposing
- stripping?
- targets for headers
This could, potentially, contain a lot of the basic functionality of wikis.org itself — would help explain the core concepts to the world, perhaps.