Skip to content

Commit 85ab1b0

Browse files
committed
fix (astro): remove hardcoded language in clean_html
1 parent 53c7fea commit 85ab1b0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/docs/filters/astro/clean_html.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ def call
1313

1414
css('pre').each do |node|
1515
node.content = node.css('.ec-line').map(&:content).join("\n")
16-
node['data-language'] = node.ancestors('figure').first['class'][/lang-(\w+)/, 1]
1716
node.remove_attribute('style')
1817
end
1918

0 commit comments

Comments
 (0)