Project

General

Profile

Actions

Feature #3061

closed

Let macros optionally match over multiple lines and ignore single curly braces

Added by Nils Israel about 15 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Category:
Text formatting
Target version:
Start date:
2009-03-27
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

Hi,
please modify the regex to match the wiki macros in source:trunk/lib/redmine/wiki_formatting/textile/formatter.rb. With this version the regex matches options with multiple lines and closing curly braces in it. I use this in the wiki_latex_plugin.

Thx,
Nils

        MACROS_RE = /
                      (!)?                        # escaping
                      (
                      \{\{                        # opening tag
                      ([\w]+)                     # macro name
                      (\((.*?)\))?             # optional arguments
                      \}\}                        # closing tag
                      )
                    /xm unless const_defined?(:MACROS_RE)
Actions

Also available in: Atom PDF