|
|
@ -14,6 +14,10 @@ module Docs
|
|
|
|
node['data-language'] = 'php'
|
|
|
|
node['data-language'] = 'php'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
css('a.__cf_email__').each do |node|
|
|
|
|
|
|
|
|
node.replace(decode_cloudflare_email(node['data-cfemail']))
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
doc
|
|
|
|
doc
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
@ -67,8 +71,9 @@ module Docs
|
|
|
|
node.parent.next_element['id'] = node['name']
|
|
|
|
node.parent.next_element['id'] = node['name']
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
css('a.__cf_email__').each do |node|
|
|
|
|
css('blockquote').each do |node|
|
|
|
|
node.replace(decode_cloudflare_email(node['data-cfemail']))
|
|
|
|
node['class'] = 'tip' if node.inner_html.include?('{tip}')
|
|
|
|
|
|
|
|
node.inner_html = node.inner_html.remove(/\{(tip|note)\}\s?/)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|