mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Remove unused nodes in LaTeX sources
This commit is contained in:
parent
db902684a2
commit
e766158d2d
1 changed files with 4 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue