プロジェクト

全般

プロフィール

Vote #63273

完了

Unable to past escaped wiki syntax in an issue description

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Wiki_1
対象バージョン:
開始日:
2008/05/22
期日:
進捗率:

0%

予定工数:
category_id:
1
version_id:
14
issue_org_id:
1288
author_id:
809
assigned_to_id:
1
comments:
6
status_id:
5
tracker_id:
1
plus1:
1
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

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 ?


journals

I do not think that this is a textile issue but rather the artifiact of an over-aggressive wiki processor.
--------------------------------------------------------------------------------
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 ?
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
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 : http://redcloth.org/faq . Maybe that would solve this problem, if you feel like trying.
--------------------------------------------------------------------------------
Fixed in r3589. The 2-pass rendering was preversed so we can still cache pass 1 (textile or any other text formatter).
--------------------------------------------------------------------------------


related_issues

relates,Closed,5800,Problem with Redmine Links in a pre
duplicates,Closed,2602,<pre> tags create links instead of displaying text
duplicates,Closed,2642,Issue references are parsed in pre tags
duplicates,Closed,4271,Wiki links in <pre> should not interpreted
duplicates,Closed,4392,wiki style <pre> </pre> rendering

Admin Redmine さんが約4年前に更新

  • カテゴリWiki_1 にセット
  • 対象バージョン1.0.0 (RC)_14 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0