Defect #1288

Unable to past escaped wiki syntax in an issue description

Added by Paul Rivier over 14 years ago. Updated over 12 years ago.

Status:ClosedStart date:2008-05-22
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:


Target version:1.0.0 (RC)
Resolution:Fixed Affected version:


In issue #1287, I needed to print some textile syntaxe to give an example. I tried to use <pre> tag, but it does not escape some syntax :
  • <pre> itself
  • [[links]] in brackets
  • probably some more ...

Is there a way to have truely verbatim print of a section, in textile ?

Related issues

Related to Redmine - Defect #5800: Problem with Redmine Links in a pre Closed 2010-07-01
Duplicated by Redmine - Defect #2602: <pre> tags create links instead of displaying text Closed
Duplicated by Redmine - Defect #2642: Issue references are parsed in pre tags Closed 2009-02-02
Duplicated by Redmine - Defect #4271: Wiki links in <pre> should not interpreted Closed 2009-11-23
Duplicated by Redmine - Defect #4392: wiki style <pre> </pre> rendering Closed 2009-12-14

Associated revisions

Revision 3589
Added by Jean-Philippe Lang over 12 years ago

Do not parse redmine links inside pre/code tags (#1288).


#1 Updated by James Byrne about 14 years ago

I do not think that this is a textile issue but rather the artifiact of an over-aggressive wiki processor.

#2 Updated by Paul Rivier about 14 years ago

  • Assignee set to Jean-Philippe Lang

After some more investigations, I now understand what is happening.

Textile syntax does not provide facilities required for Redmine internal references. That is why Jean Philippe needed to extend it to support references to :
  • wiki pages
  • issues
  • repository
  • ...

The problem is in the way this extension is implemented, namely : successive text substitutions on top of the RedCloth processing.
I don't know how easy it would be to migrate this processing to an extension of the RedCloth processing, but I think it will be required sometime.

Any plan for that ?

#3 Updated by Jean-Philippe Lang over 13 years ago

  • Subject changed from Unable to past escaped textile syntax in an issue description to Unable to past escaped wiki syntax in an issue description

#4 Updated by Kamil . over 12 years ago


#5 Updated by Paul Rivier over 12 years ago

  • Affected version (unused) set to devel

actually, html rendering is a 2 stages operation in redmine. First, input is fed to plain textile engine RedCloth, then output is fed to redmine rules, written in source:trunk/app/helpers/application_helper.rb. "pre" is only meaningful in stage 1, so redmine links can't be escaped that way. RedCloth site says it provides facilities to extend the syntax : . Maybe that would solve this problem, if you feel like trying.

#6 Updated by Jean-Philippe Lang over 12 years ago

  • Status changed from New to Closed
  • Target version set to 1.0.0 (RC)
  • Resolution set to Fixed

Fixed in r3589. The 2-pass rendering was preversed so we can still cache pass 1 (textile or any other text formatter).

Also available in: Atom PDF