Project

General

Profile

Actions

Feature #22425

closed

Allow "style" tag in Redcarpet Markdown formatter

Added by Go MAEDA over 8 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Wont fix

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 formattingClosedJean-Philippe Lang2008-12-30

Actions
Related to Redmine - Defect #37237: Common Markdown Formatter does not render all properties on HTML elementsClosedMarius BÄ‚LTEANU

Actions
Actions #1

Updated by Go MAEDA over 6 years ago

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

Updated by Go MAEDA over 6 years ago

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

Updated by Yuuki NARA over 4 years 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

Actions #5

Updated by Mischa The Evil about 2 years ago

  • Related to Defect #37237: Common Markdown Formatter does not render all properties on HTML elements added
Actions #6

Updated by Mischa The Evil about 2 years ago

  • Subject changed from Allow "style" tag in Markdown formatter to Allow "style" tag in Redcarpet Markdown formatter
Actions #7

Updated by Mischa The Evil about 2 years ago

  • Status changed from New to Needs feedback

@Go MAEDA: I think we can close this issue as "Wont fix" now that the Redcarpet-based Markdown formatter has been superseded by the new CommonMark Markdown (GitHub Flavored) formatter (#32424) and will be deprecated in 5.1.0 (#36807) and removed in a to-be-determined future release. Do you agree?

Actions #8

Updated by Go MAEDA about 2 years ago

  • Status changed from Needs feedback to Closed
  • Resolution set to Wont fix

Mischa The Evil wrote:

@Go MAEDA: I think we can close this issue as "Wont fix" now that the Redcarpet-based Markdown formatter has been superseded by the new CommonMark Markdown (GitHub Flavored) formatter (#32424) and will be deprecated in 5.1.0 (#36807) and removed in a to-be-determined future release. Do you agree?

Yes, since Redcarpet is going to be removed in the future release and the use of inline styles in CommonMark is discussed in #37237 as you pointed out, I think it is appropriate to close this issue.

Actions

Also available in: Atom PDF