mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Allow styles in <dt> elements
I have not yet checked to see if this breaks things.
This commit is contained in:
parent
90f2988ba3
commit
9a564eac99
1 changed files with 0 additions and 8 deletions
|
@ -57,14 +57,6 @@ module Docs
|
||||||
node.parent.before(node.content).remove
|
node.parent.before(node.content).remove
|
||||||
end
|
end
|
||||||
|
|
||||||
css('dt').each do |node|
|
|
||||||
next unless node['id'] || node.at_css('code, .classifier')
|
|
||||||
links = []
|
|
||||||
links << node.children.last.remove while node.children.last.try(:name) == 'a'
|
|
||||||
node.inner_html = "<code>#{CGI::escapeHTML(node.content.strip)}</code> "
|
|
||||||
links.reverse_each { |link| node << link }
|
|
||||||
end
|
|
||||||
|
|
||||||
css('li > p:first-child:last-child').each do |node|
|
css('li > p:first-child:last-child').each do |node|
|
||||||
node.before(node.children).remove
|
node.before(node.children).remove
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue