瀏覽代碼

fix (astro): remove hardcoded language in clean_html

lippiece 1 年之前
父節點
當前提交
85ab1b0af2
共有 1 個文件被更改,包括 0 次插入1 次删除
  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