Project

General

Profile

Actions

Feature #16072

closed

Markdown footnote support

Added by Anonymous about 10 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Category:
Text formatting
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

I use markdown a lot. So I tried the developing version of Redmine.

Every thing goes fine, but I found the the footnotes not rendered correctly. Like follow image:

I tried to modify the `Formatter.formatter` in `lib/redmine/wiki_formatting/markdown/formatter.rb`,
Add `footnotes` extension, but have not luck.

Is it possible to support `footnotes` ?


Files

fn.png (1.38 KB) fn.png Anonymous, 2014-02-11 08:44

Related issues

Related to Redmine - Patch #28207: Test improvements for footnotes formatting syntaxClosedGo MAEDA

Actions
Has duplicate Redmine - Feature #20405: Enable footnotes support in Markdown formatter.Closed

Actions
Actions #1

Updated by Toshi MARUYAMA about 10 years ago

  • Category set to Text formatting
Actions #2

Updated by Kaoru Kobo over 9 years ago

+1

Actions #3

Updated by Go MAEDA over 8 years ago

  • Has duplicate Feature #20405: Enable footnotes support in Markdown formatter. added
Actions #4

Updated by Go MAEDA over 8 years ago

Patch by Mischa The Evil (#20405)

I did a quick test with footnotes support enabled and it seems to work properly OOTB. The feature with its syntax is described at the end of https://github.com/vmg/redcarpet#and-its-like-really-simple-to-use.

diff --git a/lib/redmine/wiki_formatting/markdown/formatter.rb b/lib/redmine/wiki_formatting/markdown/formatter.rb
index 17d94a1..fdf17fe 100644
--- a/lib/redmine/wiki_formatting/markdown/formatter.rb
+++ b/lib/redmine/wiki_formatting/markdown/formatter.rb
@@ -128,7 +128,8 @@ module Redmine
             :tables => true,
             :strikethrough => true,
             :superscript => true,
-            :no_intra_emphasis => true
+            :no_intra_emphasis => true,
+            :footnotes => true
           )
         end
       end
Actions #5

Updated by Go MAEDA over 8 years ago

  • Target version set to Candidate for next major release

Footnotes in Textile is already supported by Redmine.
I think footnotes in Markdown should also be supported.

Actions #6

Updated by Toshi MARUYAMA over 8 years ago

  • Target version changed from Candidate for next major release to 3.2.0
Actions #7

Updated by Jean-Philippe Lang over 8 years ago

  • Subject changed from Markdown footnote support. to Markdown footnote support
  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Resolution set to Fixed

Committed in r14628, thanks.

Actions #8

Updated by Mischa The Evil about 6 years ago

  • Related to Patch #28207: Test improvements for footnotes formatting syntax added
Actions

Also available in: Atom PDF