Actions
Feature #35889
openTextile and Markdown attachment rendering should support third-party formatters
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
.
- 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
Actions