qunit: remove wrapping <article>

This commit is contained in:
Simon Legner 2024-07-17 06:07:06 +02:00
parent a2f8678648
commit 8a2e4761c8

View file

@ -4,7 +4,7 @@ module Docs
class Qunit class Qunit
class CleanHtmlFilter < Filter class CleanHtmlFilter < Filter
def call def call
@doc = at_css('.content[role="main"]') @doc = at_css('.content[role="main"] > article')
css('.sidebar').remove css('.sidebar').remove
css('pre').each do |node| css('pre').each do |node|
node['data-language'] = 'javascript' node['data-language'] = 'javascript'