fix (astro): remove hardcoded language in clean_html

This commit is contained in:
lippiece 2024-08-18 10:39:22 +02:00
parent 53c7fea340
commit 85ab1b0af2
No known key found for this signature in database
GPG key ID: EA523BD782F9600A

View file

@ -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