mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
fix (astro): remove hardcoded language in clean_html
This commit is contained in:
parent
53c7fea340
commit
85ab1b0af2
1 changed files with 0 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue