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
33 class CleanHtmlFilter < Filter
44 def call
55 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
610 doc
711 end
812 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