プロジェクト

全般

プロフィール

Vote #68526

未完了

Autolinking should not occur in link titles

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

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Text formatting_26
対象バージョン:
-
開始日:
2010/11/02
期日:
進捗率:

0%

予定工数:
category_id:
26
version_id:
0
issue_org_id:
6802
author_id:
22976
assigned_to_id:
0
comments:
5
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

In @[[www| the title incorrectly gets converted into an external link.

Using 1.0-stable branch.


journals

The issue is actually the other way round. The auto linking of URLs (performed by @inline_auto_link@ in @textile/formatter@ occurs occurs first, the wiki link is only generated after than.

Thus, the above statement is transformed into:

*Current behavior*
# @[[www|www.example.org]]@
# @[[www|<a class="external" href="http://www.example.org">www.example.org</a>]]@
# @<a href="/projects/redmine/wiki/www" class="wiki-page new"><a class="external" href="http://www.example.org">www.example.org</a></a>@

*Expected*
# @[[www|www.example.org]]@
# @<a href="/projects/redmine/wiki/www" class="wiki-page new">www.example.org</a>@

This might be solved by reordering rendering methods in source:trunk/app/helpers/application_helper.rb#L453 in a way that @parse_wiki_links@ runs before @inline_auto_link@. Maybe, these methods need to be included into the textile implementation in source:trunk/lib/redmine/wiki_formatting/textile in the correct ordering.
--------------------------------------------------------------------------------
Redmine links (eg. wiki, ticket links...) should not be handled by the builtin text formatter so we can easily switch to another one.

Maybe we could fix inline_auto_link instead.
--------------------------------------------------------------------------------
This issue seems to be fixed in Textile. I could not reproduce on Redmine 3.4.6.devel.17477. But it still does not work as expected in Markdown.
--------------------------------------------------------------------------------
Go MAEDA wrote:
> This issue seems to be fixed in Textile. I could not reproduce on Redmine 3.4.6.devel.17477. But it still does not work as expected in Markdown.

8 years! amazing. I thought redmine was long dead, feel free to close the ticket.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

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

  • カテゴリText formatting_26 にセット

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

いいね!0
いいね!0