History

Update Node.js documentation (5.11.0, 4.4.3)

Thibaut Courouble committed 10 years ago

Commit aaee4c01 parent 279265d4 files · +7 −3Browse files

Showing the changes to lib/docs/filters/node (1 of 4 files). Show all

Unified · Split

lib/docs/filters/node/clean_html.rb+4−0
@@ -15,6 +15,10 @@ module Docs · 14 unmodified lines
1515 end
1616
1717 css('pre').each do |node|
18+ if lang = node.at_css('code')['class']
19+ node['data-language'] = lang
20+ end
21+
1822 node.content = node.content
1923 end
2024