axios: remove code highlighting

pull/1872/head
Simon Legner 2 years ago
parent 088f13e1a6
commit 40ade81c60

@ -3,6 +3,10 @@ module Docs
class CleanHtmlFilter < Filter class CleanHtmlFilter < Filter
def call def call
css('.links').remove css('.links').remove
css('pre').each do |node|
node.content = node.content
node['data-language'] = node['class'][/lang-(\w+)/, 1]
end
doc doc
end end
end end

Loading…
Cancel
Save