mirror of
https://github.com/redmine/redmine.git
synced 2025-10-26 07:46:17 +01:00
git-svn-id: https://svn.redmine.org/redmine/trunk@23728 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -78,7 +78,7 @@ module Redmine
|
||||
|
||||
case node.name
|
||||
when 'div'
|
||||
unless node['class'] =~ /\Amarkdown-alert markdown-alert-[a-z]+\z/
|
||||
unless /\Amarkdown-alert markdown-alert-[a-z]+\z/.match?(node['class'])
|
||||
node.remove_attribute('class')
|
||||
end
|
||||
when 'p'
|
||||
|
||||
@@ -51,7 +51,7 @@ if Object.const_defined?(:Commonmarker)
|
||||
%(<a href="#fn-1" id="fnref-1">foo</a>),
|
||||
%(<a href="#fn-1" id="fnref-1-2">foo</a>),
|
||||
%(<ol><li id="fn-1">footnote</li></ol>),
|
||||
].each do | input |
|
||||
].each do |input|
|
||||
assert_equal input, filter(input)
|
||||
assert_equal input, filter(input)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user