Feature #22425

Allow "style" tag in Markdown formatter

Added by Go MAEDA over 5 years ago. Updated over 1 year ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Text formatting
Target version:-
Resolution:

Description

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


Related issues

Related to Redmine - Feature #2416: {background:color} doesn't work in text formatting Closed 2008-12-30

History

#1 Updated by Go MAEDA over 3 years ago

  • Subject changed from Allow "style" tag to Allow "style" tag in Markdown formatter

#3 Updated by Go MAEDA over 3 years ago

  • Related to Feature #2416: {background:color} doesn't work in text formatting added

#4 Updated by Yuuki NARA over 1 year ago

+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

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

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

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

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

Also available in: Atom PDF