diff --git a/lib/commonmarker/renderer/html_renderer.rb b/lib/commonmarker/renderer/html_renderer.rb index df10042d..2d8375ab 100644 --- a/lib/commonmarker/renderer/html_renderer.rb +++ b/lib/commonmarker/renderer/html_renderer.rb @@ -129,8 +129,12 @@ def emph(_) out("", :children, "") end - def strong(_) - out("", :children, "") + def strong(node) + if node.parent&.type == :strong + out(:children) + else + out("", :children, "") + end end def link(node)