Modify

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#10763 closed enhancement (fixed)

Add support for tables

Reported by: holmberg.anders+trachacks@… Owned by: Ryan J Ollos
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 (0)

Change History (3)

comment:1 Changed 11 years ago by Ryan J Ollos

Owner: changed from Douglas Clifton to Ryan J Ollos
Status: newassigned

comment:2 Changed 11 years ago by Ryan J Ollos

Resolution: fixed
Status: assignedclosed

(In [13244]) Fixes #10763: (version 0.11.4) Enabled the tables extension. Thanks to Anders Holmberg for the patch.

comment:3 Changed 11 years ago by Ryan J Ollos

Great idea. I've documented the change here.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.