Browse Source

Update QUnit documentation (2.19.3)

Simon Legner 3 years ago
parent
commit
1d0ffffd43
1 changed files with 4 additions and 0 deletions
  1. 4 0
      lib/docs/filters/qunit/clean_html.rb

+ 4 - 0
lib/docs/filters/qunit/clean_html.rb

@@ -6,6 +6,10 @@ module Docs
       def call
         @doc = at_css('.content[role="main"]')
         css('.sidebar').remove
+        css('pre').each do |node|
+          node['data-language'] = 'javascript'
+          node.content = node.content
+        end
         doc
       end
     end