lib/rubocop/markdown/preprocess.rb in rubocop-md-0.4.0 vs lib/rubocop/markdown/preprocess.rb in rubocop-md-0.4.1

- old
+ new

@@ -71,11 +71,11 @@ parts = src.split(MD_REGEXP) walker = Walker.new parts.each do |part| - if walker.code_body? - next walker.next! if maybe_ruby?(@syntax) && valid_syntax?(@syntax, part) + if walker.code_body? && maybe_ruby?(@syntax) && valid_syntax?(@syntax, part) + next walker.next! end if walker.code_attr? @syntax = part.gsub(/(^\s+|\s+$)/, "") next walker.next!