From fc20332c0f9f2e792d9641113da271be04440755 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 4 Jul 2014 16:09:51 -0400 Subject: [PATCH] Lift all oneboxes out of `

` tags. --- lib/oneboxer.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/oneboxer.rb b/lib/oneboxer.rb index 06f723b9a42..2b073d910ba 100644 --- a/lib/oneboxer.rb +++ b/lib/oneboxer.rb @@ -90,8 +90,7 @@ module Oneboxer # special logic to strip empty p elements if element.parent && element.parent.node_name.downcase == "p" && - element.parent.children.count == 1 && - parsed_onebox.children.first.name.downcase == "div" + element.parent.children.count == 1 element = element.parent end changed = true