Showing the changes to lib/docs/filters/node (1 of 4 files). Show all
Unified · Split
| @@ -15,6 +15,10 @@ module Docs · 14 unmodified lines | ||
| 15 | 15 | end |
| 16 | 16 | |
| 17 | 17 | css('pre').each do |node| |
| 18 | + if lang = node.at_css('code')['class'] | |
| 19 | + node['data-language'] = lang | |
| 20 | + end | |
| 21 | + | |
| 18 | 22 | node.content = node.content |
| 19 | 23 | end |
| 20 | 24 | |