プロジェクト

全般

プロフィール

Vote #74915

完了

Markdown footnote support

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Text formatting_26
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
26
version_id:
102
issue_org_id:
16072
author_id:
4
assigned_to_id:
1
comments:
8
status_id:
5
tracker_id:
2
plus1:
1
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

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:

!fn.png!

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 ?


journals

--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Patch by Mischa The Evil (#20405)

bq. 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.

<pre><code class="diff">
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
</code></pre>
--------------------------------------------------------------------------------
Footnotes in Textile is already supported by Redmine.
I think footnotes in Markdown should also be supported.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Committed in r14628, thanks.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,Closed,28207,Test improvements for footnotes formatting syntax
duplicates,Closed,20405,Enable footnotes support in Markdown formatter.

Admin Redmine さんが約4年前に更新

  • カテゴリText formatting_26 にセット
  • 対象バージョン3.2.0_102 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0