Skip to content

Commit 3f6c4d4

Browse files
committed
Update OpenTofu documentation (1.12.0)
1 parent 56879c3 commit 3f6c4d4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/docs/filters/opentofu/clean_html.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ class Opentofu
33
class CleanHtmlFilter < Filter
44
def fix_syntax_highlight
55
css('pre').each do |node|
6+
node['data-language'] = node['class'][/language-(\w+)/, 1] if node['class']
7+
node.content = node.css('.token-line').map(&:content).join("\n")
68
node.remove_attribute('class')
79
node.remove_attribute('style')
8-
node.css('.token-line').remove_attribute('style')
910
end
1011

1112
css('[class*="buttonGroup_"]').remove

0 commit comments

Comments
 (0)