From 0a1b28762201db26f836372db08f27a276d0fdef Mon Sep 17 00:00:00 2001 From: Gergely Gombos Date: Wed, 11 Dec 2024 01:00:01 +0100 Subject: [PATCH] fix Ready to learn --- lib/docs/filters/react/clean_html_react_dev.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docs/filters/react/clean_html_react_dev.rb b/lib/docs/filters/react/clean_html_react_dev.rb index b593b09f..1ad201cd 100644 --- a/lib/docs/filters/react/clean_html_react_dev.rb +++ b/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)