History

syntax highlighting

Gergely Gombos committed 1 year ago

Commit 42ec9191 parent 6cff40e1 file · +8 −0Browse files

Showing the changes to lib/docs (1 of 1 file). Show all

Unified · Split

lib/docs/filters/react/clean_html_react_dev.rb+8−0
@@ -33,6 +33,14 @@ module Docs · 32 unmodified lines
3333 node.before(node.children).remove
3434 end
3535
36+ # Syntax highlighting
37+ css('pre br').each do |node|
38+ node.replace("\n")
39+ end
40+ css('pre').each do |node|
41+ node['data-language'] = 'jsx'
42+ end
43+
3644 doc
3745 end
3846 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