Project

General

Profile

Actions

Support #7268

closed

Redmine wiki with Markdown syntax does not support HTML

Added by Alessia Bardi over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Urgent
Category:
System Application
Start date:
Feb 28, 2017
Due date:
% Done:

100%

Estimated time:
Infrastructure:
Production

Description

We need to add tables in the wiki of OpenAIRE-connect-wiki project, but the wiki is set to use the Markdown syntax without the support for HTML tags (Markdown has not its syntax for tables).

According to this documentation http://www.redmine.org/projects/redmine/wiki/RedmineTextFormattingMarkdown#Tables it seems there is a way to enable HTML tags.

Actions #1

Updated by Andrea Dell'Amico over 8 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

I changed the boolean from true to false for filter_html here:

/srv/redmine/d4science/lib/redmine/wiki_formatting/markdown/formatter.rb

The code snippet is:

        def formatter
          @@formatter ||= Redcarpet::Markdown.new(
            Redmine::WikiFormatting::Markdown::HTML.new(
              :filter_html => false,
              :hard_wrap => true
            ),
            :autolink => true,
            :fenced_code_blocks => true,
            :space_after_headers => true,
            :tables => true,
            :strikethrough => true,
            :superscript => true,
            :no_intra_emphasis => true
          )
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 8.91 MB)