Remove unused nodes in LaTeX sources

This commit is contained in:
Cimbali 2021-05-27 12:36:55 +02:00
parent db902684a2
commit e766158d2d

View file

@ -13,6 +13,10 @@ module Docs
css('h1, h2, h3, h4').each { |node| node.content = node.content.sub /^[0-9A-Z]+(\.[0-9]+)* /, '' }
css('div.example').each do |node|
node.replace(node.children)
end
css('pre').each do |node|
node.delete 'class'
node['data-language'] = 'latex'