プロジェクト

全般

プロフィール

Vote #77345

未完了

Allow "style" tag in Markdown formatter

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

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

0%

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

説明

There are no means of styling text (such as color, font-size, ...) in Markdown formetter.
Please allow "style" tag to let users decorate text.


journals

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

--------------------------------------------------------------------------------
+1

I also want to set the text color on markdown.

There was a related discussion at the URL below.
https://www.redmine.org/boards/2/topics/56096?r=57052

You can fix it with the following modification,
but I am worried about the security risk.

redmine/lib/redmine/wiki_formatting/markdown/formatter.rb

<pre>
Redmine::WikiFormatting::Markdown::HTML.new(
:filter_html => false
</pre>

Wouldn't it be possible to reduce the risk of security by additionally setting safe_links_only => true ?

<pre>
Redmine::WikiFormatting::Markdown::HTML.new(
:filter_html => false,
:safe_links_only => true
</pre>

In my environment, I can do these two settings and use the style tag to set the text color.

redcarpet reference
https://github.com/vmg/redcarpet#darling-i-packed-you-a-couple-renderers-for-lunch

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


related_issues

relates,Closed,2416,{background:color} doesn't work in text formatting

Admin Redmine さんがほぼ2年前に更新

  • カテゴリText formatting_26 にセット

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

いいね!0
いいね!0