Project

General

Profile

Actions

Feature #42444

closed

Allow use of the CSS text-decoration property in text formatting

Added by Sergio Fukaya about 1 year ago. Updated 8 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Text formatting
Target version:
Resolution:
Fixed

Description

Redmine Editor does not support CSS style "text-decoration: line-through".

I believe that the problem is due to the regex in https://github.com/redmine/redmine/blob/17a77c2776a34d19ec7a628a920f0cf8c394e611/lib/redmine/wiki_formatting/textile/redcloth3.rb#L513 that doesn't accept dash characters in the CSS style value.

I need to use "text-decoration: line-through" because I cannot use the textile notation -text- when the text has a URL a with a dash character on it.

Example using the textile notation with URL "https://www.example.com/commits/-/102321/notice":
My repository/102321/notice-


Files

42444.patch (3.51 KB) 42444.patch Go MAEDA, 2026-03-21 02:46
Actions #1

Updated by Go MAEDA about 1 year ago

  • Tracker changed from Defect to Feature
  • Subject changed from CSS style "text-decoration: line-through" not supported to Allow "text-decoration: line-through" in inline styles
  • Affected version deleted (4.2.2)

Since this is a feature request rather than a defect, I have changed the tracker and the subject.

Actions #2

Updated by Go MAEDA 11 days ago

  • File 42444.patch 42444.patch added
  • Subject changed from Allow "text-decoration: line-through" in inline styles to Support the text-decoration CSS property in Textile and CommonMark Markdown formatters
  • Target version set to Candidate for next major release

This patch updates the CommonMark Markdown and Textile formatters to support the CSS text-decoration property.

Actions #3

Updated by Go MAEDA 10 days ago

  • Target version changed from Candidate for next major release to 7.0.0

Setting the target version to 7.0.0.

Actions #4

Updated by Go MAEDA 8 days ago

  • Subject changed from Support the text-decoration CSS property in Textile and CommonMark Markdown formatters to Allow use of the CSS text-decoration property in text formatting
  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the patch in r24527.

Actions

Also available in: Atom PDF