Browse Source

removed hover popup

Rui Jiang 1 năm trước cách đây
mục cha
commit
9102197db0
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      lib/docs/filters/svelte/clean_html.rb

+ 2 - 0
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