Markdown ******** Links ===== - http://www.freewisdom.org/projects/python-markdown/ Extensions ========== - `Available Extensions`_ Configuration ------------- Two methods to configure extensions (using keyword arguments): - Keyword arguments: :: 'extensions': ['wikilinks',], 'extension_configs': { 'wikilinks': [ ('base_url', 'http://example.com/'), ] }, - String: :: 'extensions': ['wikilinks(base_url=http://example.com/)',], Note: When used with the :doc:`../../django/applications/template-utils` you will need to use the *String* method to configure extensions, as the ``extension_configs`` do not get passed to the ``markdown`` method (in the markdown module). Install ======= :: pip install Markdown Sample ====== :: import markdown s = 'Dartmoor Inn\r\n============\r\n\r\n[For more information see...](http://www.dartmoorinn.com/ "Dartmoor Inn")' markdown.markdown(s) > u'
Name | \nAge | \n
---|---|
Pat | \n46 | \n
Sam | \n20 | \n
This is a WikiLink.
' .. _`Available Extensions`: http://www.freewisdom.org/projects/python-markdown/Available_Extensions .. _`How to convert markdown formatted text to text`: http://stackoverflow.com/questions/761824/python-how-to-convert-markdown-formatted-text-to-text .. _`Python Markdown Extension for Video`: http://www.tylerlesmann.com/2009/apr/02/python-markdown-extension-video/