プロジェクト

全般

プロフィール

Vote #79517

未完了

Hyperlinks with dash | m-files://

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

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

0%

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

説明

Hi All,
we started using Redmine in our company and one of problems we have is that we are using MFiles for document sharing - it could be shared as hyperlinks in emails like:

m-files://show/1481067C-D3D8-465B-BE1D-1FC924913B39/0-147851?object=A6DD4B88-47CF-44A8-91AD-35411808231A

Unfortnately Textile or Markdown doesnt seem to dash friendly :)

"Using Textile":m-files://show/1481067C-D3D8-465B-BE1D-1FC924913B39/0-147851?object=A6DD4B88-47CF-44A8-91AD-35411808231A
"Using Textile without dash ":mfiles://show/1481067C-D3D8-465B-BE1D-1FC924913B39/0-147851?object=A6DD4B88-47CF-44A8-91AD-35411808231A

The problem seems to be dash. How this could be solved? Thank you !


journals

Edited: redmine/lib/redmine/wiki_formatting.rb and when you paste just
<pre>
m-files://show/1481067C-D3D8-465B-BE1D-1FC924913B39/0-147851?object=A6DD4B88-47CF-44A8-91AD-35411808231A
</pre>
it makes hyperlink

Change:
<pre>
module LinksHelper
AUTO_LINK_RE = %r{
( # leading text
<\w+[^>]*?>| # leading HTML tag, or
[\s\(\[,;]| # leading punctuation, or
^ # beginning of line
)
(
(?:https?://)| # protocol spec, or
(?:s?ftps?://)|
(?:m-files?://)| # m-files
(?:www\.) # www.*
)
(
([^<]\S*?) # url
(\/)? # slash
)
((?:&gt;)?|[^[:alnum:]_\=\/;\(\)]*?) # post
(?=<|\s|$)
}x unless const_defined?(:AUTO_LINK_RE)

</pre>
And how to support "Title":url syntax?
btw: do I need to "bundle install" each time I edit source code?
--------------------------------------------------------------------------------

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

  • カテゴリText formatting_26 にセット

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

いいね!0
いいね!0