From 85ab1b0af27df1a47d8ed6d7c82c0d67978847d7 Mon Sep 17 00:00:00 2001 From: lippiece Date: Sun, 18 Aug 2024 10:39:22 +0200 Subject: [PATCH] fix (astro): remove hardcoded language in clean_html --- lib/docs/filters/astro/clean_html.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/docs/filters/astro/clean_html.rb b/lib/docs/filters/astro/clean_html.rb index 8f304efe..6dc761fe 100644 --- a/lib/docs/filters/astro/clean_html.rb +++ b/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