summaryrefslogtreecommitdiffstats
path: root/lib/redmine/wiki_formatting/markdown
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-08-24 06:57:03 +0000
committerGo MAEDA <maeda@farend.jp>2019-08-24 06:57:03 +0000
commitd50f0e83fb6a72713f6980799ace312a9bc05e4c (patch)
tree7f387f2933f665fa1e5bfdd4b24eb46cc1268c4a /lib/redmine/wiki_formatting/markdown
parentdd24d5a004c6f0e137f0a3520d77ca3d704f1d66 (diff)
downloadredmine-d50f0e83fb6a72713f6980799ace312a9bc05e4c.tar.gz
redmine-d50f0e83fb6a72713f6980799ace312a9bc05e4c.zip
Better handling of HTML tables when creating an issue from an email (#31231).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@18383 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/wiki_formatting/markdown')
-rw-r--r--lib/redmine/wiki_formatting/markdown/html_parser.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/redmine/wiki_formatting/markdown/html_parser.rb b/lib/redmine/wiki_formatting/markdown/html_parser.rb
index c9f83ffe6..ff25a0bd2 100644
--- a/lib/redmine/wiki_formatting/markdown/html_parser.rb
+++ b/lib/redmine/wiki_formatting/markdown/html_parser.rb
@@ -35,6 +35,8 @@ module Redmine
'h4' => {:pre => "\n\n#### ", :post => "\n\n"},
'h5' => {:pre => "\n\n##### ", :post => "\n\n"},
'h6' => {:pre => "\n\n###### ", :post => "\n\n"},
+ 'th' => {:pre => '*', :post => "*\n"},
+ 'td' => {:pre => '', :post => "\n"},
'a' => lambda {|node| node.content.present? ? %| [#{node.content}](#{node.attributes['href'].value}) | : %| #{node.attributes['href'].value} |}
)
end