diff --git a/lib/docs/filters/svelte/clean_html.rb b/lib/docs/filters/svelte/clean_html.rb index 07f0dd51..cdc929ea 100644 --- a/lib/docs/filters/svelte/clean_html.rb +++ b/lib/docs/filters/svelte/clean_html.rb @@ -15,6 +15,8 @@ module Docs at_css('h1').content = 'Svelte' if root_page? css('pre').each do |node| + # Remove hover popup + node.css('.twoslash-popup-container').remove() node.content = node.css('.line').map(&:content).join("\n") node['data-language'] = 'typescript' end