Modify

Opened 21 months ago

Closed 16 months ago

Last modified 16 months ago

#10763 closed enhancement (fixed)

Add support for tables

Reported by: holmberg.anders+trachacks@… Owned by: rjollos
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 16 months ago by rjollos

  • Owner changed from dwclifton to rjollos
  • Status changed from new to assigned

comment:2 Changed 16 months ago by rjollos

  • Resolution set to fixed
  • Status changed from assigned to closed

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

comment:3 Changed 16 months ago by rjollos

Great idea. I've documented the change here.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.