Redmine markdown のテーブル内で改行する方法。
幾つかの方法があるらしいが、ここを参照して無事に設定できた。
http://qiita.com/HideakiSaito/items/e08e3f7eb50d24fa9722
- 設定
$REDMINE_HOME/lib/redmine/wiki_formatting/macros.rb
# Builtin macros
desc "Sample macro."
macro :hello_world do |obj, args, text|
h("Hello world! Object: #{obj.class.name}, " +
(args.empty? ? "Called with no argument" : "Arguments: #{args.join(', ')}") +
" and " + (text.present? ? "a #{text.size} bytes long block of text." : "no block of text.")
)
end
+ desc "br."
+ macro :br do |obj, args|
+ raw "<br>"
+ end
+
desc "Displays a list of all available macros, including description if available."
macro :macro_list do |obj, args|
out = ''.html_safe
@@available_macros.each do |macro, options|
out << content_tag('dt', content_tag('code', macro.to_s))
out << content_tag('dd', textilizable(options[:desc]))
end
content_tag('dl', out)
end
- 使いかた
改行したいところへ { { br } } を記述
|h1 |h2 |
|---|---|
|d1 { { br } } d1|d2|