We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7195339 commit de294daCopy full SHA for de294da
1 file changed
lib/docs/filters/deno/clean_html.rb
@@ -8,12 +8,20 @@ def call
8
@doc = at_css('main article .markdown-body')
9
end
10
11
+ if at_css('.text-2xl')
12
+ doc.prepend_child at_css('.text-2xl').remove
13
+ at_css('.text-2xl').name = 'h1'
14
+ end
15
+
16
css('code').each do |node|
17
if node['class']
18
lang = node['class'][/language-(\w+)/, 1]
19
20
node['data-language'] = lang || 'ts'
21
node.remove_attribute('class')
22
+ if node.parent.name == 'div'
23
+ node.content = node.content.strip
24
25
26
27
css('a.header-anchor').remove()
0 commit comments