Browse Source

fix (astro): remove hardcoded language in clean_html

lippiece 1 year ago
parent
commit
85ab1b0af2
1 changed files with 0 additions and 1 deletions
  1. 0 1
      lib/docs/filters/astro/clean_html.rb

+ 0 - 1
lib/docs/filters/astro/clean_html.rb

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