Ticket #10763 (new enhancement)

Opened 5 months ago

Add support for tables

Reported by: holmberg.anders+trachacks@gmail.com Assigned to: dwclifton
Priority: normal Component: MarkdownMacro
Severity: normal Keywords:
Cc: Trac Release:

Description

Description

The python markdown component has support for certain extensions, e.g. tables. The tables extensions seems to play nicely with the HTML rendering in Trac and it is easy to add it.

Patch

Index: Markdown/macro.py
===================================================================
--- Markdown/macro.py	(revision 12515)
+++ Markdown/macro.py	(working copy)
@@ -54,7 +54,7 @@
             
         try:
             from markdown import markdown
-            return markdown(re.sub(LINK, convert, content))
+            return markdown(re.sub(LINK, convert, content), extensions=['tables'])
         except ImportError:
             msg = 'Error importing Python Markdown, install it from '
             url = 'http://www.freewisdom.org/projects/python-markdown/'

Attachments


Add/Change #10763 (Add support for tables)




Change Properties
Action