Project

General

Profile

Actions

QA #1351

open

CommonMark Markdown (GitHub Flavored)の対応(Redmine4)

Added by 奈良 裕記 almost 2 years ago. Updated almost 2 years ago.

Status:
回答済
Priority:
通常
Assignee:
-
Category:
-
Target version:
-
Start date:
12/19/2021
Due date:
% Done:

0%

Estimated time:

Description

■現象/要望

CommonMark Markdown(GitHub Flavored)対応が
Redmine5/RedMica2対応としてリリースされたが、現行Redmine4環境でも利用したい。

CommonMark Markdown Text Formatting
https://redmine.org/issues/32424

■解決策

手元のRedmine4.2base環境(unofficial)に取り込みましたので、利用したいかたはどうぞ。

https://github.com/y503unavailable/redmine/tree/feature-64-commonmark

今回導入差分
https://github.com/y503unavailable/redmine/compare/1e9fad349d404168e32540790f5fa8956ef662e1...8637e66bee12f7fd1eca03e8c06e251cb3af58ef

表の途中に<br>を入れ、Commonmarkの場合のみ表中で改行することを確認しました。

■対応状況

パッチ作成済

■補足

textile/markdown切替用プラグインを利用している場合、commonmarkに対応できない可能性があると思われます。

sanitizeは6.0ではなく5.1を利用した。(他Gemも変更必要となるため)

12/19時点では、リポジトリブラウザ内のmarkdown対応には未対応です。
(本家18649(Redmine5用追加)の追加対応分のため)
関連修正部分
https://redmine.org/projects/redmine/repository/diff/trunk/app/views/repositories/entry.html.erb?utf8=%E2%9C%93&rev=21165&rev_to=19460
https://redmine.org/projects/redmine/repository/changes/trunk/app/views/repositories/entry.html.erb?rev=21165

Actions #1

Updated by 奈良 裕記 almost 2 years ago

  • Description updated (diff)
  • Status changed from 新規 to 回答済
Actions #2

Updated by 奈良 裕記 almost 2 years ago

  • Description updated (diff)
Actions #3

Updated by 奈良 裕記 almost 2 years ago

  • Description updated (diff)
Actions #4

Updated by 奈良 裕記 almost 2 years ago

  • Description updated (diff)
Actions #5

Updated by 奈良 裕記 almost 2 years ago

  • Description updated (diff)
Actions #6

Updated by 奈良 裕記 almost 2 years ago

  • Description updated (diff)
Actions

Also available in: Atom PDF