Permalink
Browse files

Fixed bug causing non-removal of bogus wrapper

Could have been an issue with Kramdown specifically, but the single quotes were being turned into double quotes, causing the regex not to match.
1 parent d684a65 commit c79836bc4f5194e7ad7789652610c7aaaa6baa28 @aarongustafson aarongustafson committed Nov 16, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/raw.rb
View
@@ -8,7 +8,7 @@ def self.safe_wrap(input)
end
# This must be applied after the
def self.unwrap(input)
- input.gsub /<div class='bogus-wrapper'><notextile>(.+?)<\/notextile><\/div>/m do
+ input.gsub /<div class=['"]bogus-wrapper['"]><notextile>(.+?)<\/notextile><\/div>/m do
$1
end
end

0 comments on commit c79836b

Please sign in to comment.