プロジェクト

全般

プロフィール

Vote #77511

未完了

Markdown doesn't recognize mails

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

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

0%

予定工数:
category_id:
26
version_id:
0
issue_org_id:
23019
author_id:
152312
assigned_to_id:
0
comments:
4
status_id:
9
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Confirmed]

説明

Redmine hides this email in markdown:


But it doesn't hide this:



journals

--------------------------------------------------------------------------------
https://github.com/vmg/redcarpet/issues/402
--------------------------------------------------------------------------------
The latest version of Redcarpet still have this problem (we upgraded Redcarpet to 3.4.0 in r16583).
--------------------------------------------------------------------------------
kay rus wrote:
> https://github.com/vmg/redcarpet/issues/402

Go MAEDA wrote:
> The latest version of Redcarpet still have this problem (we upgraded Redcarpet to 3.4.0 in r16583).

Redmine is not affected by the respective issue because we have @no_intra_emphasis: true@ and the emails with _ are recognised correctly. Please see the below screenshot.

The issue with @<a_bc@def.com>@ looks to be from the same Redcarpet gem, the text is filtered out because it is recognised wrongly as HTML tag.

!markdown_emails.png!

Rails console:

With @:filter_html => true@:
<pre>
irb(main):012:0> Redcarpet::Markdown.new(Redmine::WikiFormatting::Markdown::HTML.new(:filter_html => true, :hard_wrap => true), autolink: true, no_intra_emphasis: true).render("<a_bc@def.com>")
=> ""
</pre>

With @:filter_html => false@:
<pre>
irb(main):013:0> Redcarpet::Markdown.new(Redmine::WikiFormatting::Markdown::HTML.new(:filter_html => false, :hard_wrap => true), autolink: true, no_intra_emphasis: true).render("<a_bc@def.com>")
=> "<p><a_bc@def.com></p>\n"
</pre>
--------------------------------------------------------------------------------

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

  • カテゴリText formatting_26 にセット

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

いいね!0
いいね!0