소스 검색

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