Project

General

Profile

Actions

Feature #35889

open

Textile and Markdown attachment rendering should support third-party formatters

Added by Mischa The Evil over 2 years ago. Updated over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Attachments
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

As it is implemented currently with #29752, Textile and Markdown attachment rendering is supported only for the core formatters for Textile and Markdown.

  • Textile attachment rendering currently relies on the bundled (custom) RedCloth3 library.
  • Markdown attachment rendering currently relies on the optional Redcarpet (or CommonMark, post #32424) libraries, with a fall-back to Redmine::WikiFormatting::NullFormatter.
Given the info above, currently:
  • Textile attachment rendering always works, always relying on RedCloth3 (since RedCloth3 is bundled);
  • Markdown attachment rendering only works with one of the optional Markdown core formatters installed (relying on Redcarpet or CommonMark) and based on Setting.text_formatting.

Redmine should also provide support for (custom) third-party Textile and Markdown formatters (e.g. RedCloth4 [via a formatter like provided by e.g. redmine_redcloth], kramdown, Maruku, RDiscount, etc.), based on what formatters (core and third-party) are actually available.
I think the easiest way to implement this is to let formatters provide a way to indicate that they provide support for either a Textile or Markdown flavor.


Related issues

Related to Redmine - Feature #29752: Render Textile and Markdown attachments on the preview pageClosedGo MAEDA

Actions
Related to Redmine - Feature #15520: Markdown formattingClosedJean-Philippe Lang

Actions
Related to Redmine - Feature #32424: CommonMark Markdown Text FormattingClosedMarius BĂLTEANU

Actions
Related to Redmine - Patch #2025: Pluggable wiki formatterClosed2008-10-12

Actions
Actions

Also available in: Atom PDF