Explorar el Código

fix Ready to learn

Gergely Gombos hace 1 año
padre
commit
0a1b287622
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/docs/filters/react/clean_html_react_dev.rb

+ 1 - 1
lib/docs/filters/react/clean_html_react_dev.rb

@@ -46,7 +46,7 @@ module Docs
         end
 
         # Transform h3 to h4 inside callouts
-        css('.note h3').each do |node|
+        css('.note h3', '.note h2').each do |node|
           new_node = Nokogiri::XML::Node.new('h4', @doc)
           new_node.content = node.content
           node.replace(new_node)