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
33 node.before(node.children).remove33 node.before(node.children).remove
34 end34 end
35 35
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
36 doc44 doc
37 end45 end
38 end46 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