Project

General

Profile

Actions

Patch #894

closed

Patch for #893

Added by Rocco Stanzione over 16 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2008-03-19
Due date:
% Done:

100%

Estimated time:

Description

This fixes #893, wiki links not working in tables. I considered monkey-patching redcloth, and I considered sending the patch to _why for redcloth, but apparently that project is unmaintained, so maybe it's ok to touch redcloth.rb. This patch uses a negative lookahead to not split on a pipe that's followed by two consecutive close-brackets, the closing markup for a wiki link. I tried matching both sides (open and close brackets) but MRI's regexp engine doesn't support negative lookbehinds, and I think it's safe to assume there's no other reason you'd have ]] in a table cell.


Files

wiki_links_in_tables.diff (505 Bytes) wiki_links_in_tables.diff Rocco Stanzione, 2008-03-19 18:56
wiki_links_in_tables-1.diff (540 Bytes) wiki_links_in_tables-1.diff Jean-Philippe Lang, 2008-03-19 21:58
Actions

Also available in: Atom PDF