Fix issue in Marionette scraper

Fixes #532.
pull/537/head
Thibaut Courouble 8 years ago
parent dd333ea5ba
commit e4bcfef354

@ -12,7 +12,11 @@ module Docs
end end
def other def other
css('#source + h2', '#improve', '#source', '.glyphicon', 'p > br').remove css('#source + h2', '#improve', '#source', '.glyphicon').remove
css('p > br').each do |node|
node.replace(' ')
end
css('pre > code').each do |node| css('pre > code').each do |node|
node.parent['data-language'] = node['class'][/lang-(\w+)/, 1] if node['class'] node.parent['data-language'] = node['class'][/lang-(\w+)/, 1] if node['class']

Loading…
Cancel
Save