fix (astro): remove hardcoded language in clean_html

pull/2304/head
lippiece 5 months ago
parent 53c7fea340
commit 85ab1b0af2
No known key found for this signature in database
GPG Key ID: EA523BD782F9600A

@ -13,7 +13,6 @@ module Docs
css('pre').each do |node|
node.content = node.css('.ec-line').map(&:content).join("\n")
node['data-language'] = node.ancestors('figure').first['class'][/lang-(\w+)/, 1]
node.remove_attribute('style')
end

Loading…
Cancel
Save