Feature #31231 » better-handling-of-html-tables-v2.patch
lib/redmine/wiki_formatting/markdown/html_parser.rb | ||
---|---|---|
35 | 35 |
'h4' => {:pre => "\n\n#### ", :post => "\n\n"}, |
36 | 36 |
'h5' => {:pre => "\n\n##### ", :post => "\n\n"}, |
37 | 37 |
'h6' => {:pre => "\n\n###### ", :post => "\n\n"}, |
38 |
'th' => {:pre => '*', :post => "*\n"}, |
|
39 |
'td' => {:pre => '', :post => "\n"}, |
|
38 | 40 |
'a' => lambda {|node| node.content.present? ? %| [#{node.content}](#{node.attributes['href'].value}) | : %| #{node.attributes['href'].value} |} |
39 | 41 |
) |
40 | 42 |
end |
lib/redmine/wiki_formatting/textile/html_parser.rb | ||
---|---|---|
35 | 35 |
'h4' => {:pre => "\n\nh4. ", :post => "\n\n"}, |
36 | 36 |
'h5' => {:pre => "\n\nh5. ", :post => "\n\n"}, |
37 | 37 |
'h6' => {:pre => "\n\nh6. ", :post => "\n\n"}, |
38 |
'th' => {:pre => '*', :post => "*\n"}, |
|
39 |
'td' => {:pre => '', :post => "\n"}, |
|
38 | 40 |
'a' => lambda {|node| node.content.present? ? %| "#{node.content}":#{node.attributes['href'].value} | : %| #{node.attributes['href'].value} |} |
39 | 41 |
) |
40 | 42 |
end |
- « Previous
- 1
- 2
- 3
- Next »