Unified · Split
| @@ -34,10 +34,13 @@ module Docs · 33 unmodified lines | |||
| 34 | if slug.start_with?('configuration') | 34 | if slug.start_with?('configuration') |
| 35 | css('h1', 'h2').each do |node| | 35 | css('h1', 'h2').each do |node| |
| 36 | node.name = node.name.sub(/\d/) { |i| i.to_i + 1 } | 36 | node.name = node.name.sub(/\d/) { |i| i.to_i + 1 } |
| 37 | node.remove_attribute('style') | ||
| 38 | end | 37 | end |
| 39 | end | 38 | end |
| 40 | 39 | ||
| 40 | css('*').each do |node| | ||
| 41 | node.remove_attribute('style') | ||
| 42 | end | ||
| 43 | |||
| 41 | doc | 44 | doc |
| 42 | end | 45 | end |
| 43 | end | 46 | end |