History

axios: remove code highlighting

Simon Legner committed 3 years ago

Commit 40ade811 parent 088f13e1 file · +4 −0Browse files

Unified · Split

lib/docs/filters/axios/clean_html.rb+4−0
@@ -3,6 +3,10 @@ module Docs · 2 unmodified lines
3 class CleanHtmlFilter < Filter3 class CleanHtmlFilter < Filter
4 def call4 def call
5 css('.links').remove5 css('.links').remove
6 css('pre').each do |node|
7 node.content = node.content
8 node['data-language'] = node['class'][/lang-(\w+)/, 1]
9 end
6 doc10 doc
7 end11 end
8 end12 end

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t