Browse Source

fix (astro): remove hardcoded language in clean_html

lippiece 1 năm trước cách đây
mục cha
commit
85ab1b0af2
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  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