Project

General

Profile

Actions

Feature #37119

closed

Drop redcarpet dependency for common_mark formatter

Feature #37119: Drop redcarpet dependency for common_mark formatter

Added by Marius BĂLTEANU over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
Code cleanup/refactoring
Target version:
Resolution:
Fixed

Description

Redmine fails to start when it's installed without markdown group (#36892).

We should fix this and drop the redcarpet dependency for common_mark.


Files


Related issues 1 (0 open — 1 closed)

Related to Redmine - Defect #36892: Redmine does not start when installed --without markdownClosedMarius BĂLTEANUActions

Updated by Marius BĂLTEANU over 4 years ago Actions #1

  • Assignee set to Marius BĂLTEANU

Updated by Marius BĂLTEANU over 4 years ago Actions #2

@Holger, I made a patch that should fix this.

What I did?
  • I've moved the methods get_section, update_section and extract_sections to a new helper file (Redmine::WikiFormatting::SectionHelper)
  • the new helper file is included by all three formatters
  • textile formatter overrides extract_sections method which his own implementation
  • I've removed the redcarpet dependency from common_mark group.

What do you think?

Updated by Holger Just over 4 years ago Actions #3

Looks good to me, tanks!

Updated by Marius BĂLTEANU over 4 years ago Actions #4

  • Status changed from New to Closed
  • Resolution set to Fixed

Thanks Holger for your review. I've committed both changes.

Updated by Holger Just over 3 years ago Actions #5

  • Related to Defect #36892: Redmine does not start when installed --without markdown added
Actions

Also available in: PDF Atom