Unified · Split
| @@ -42,6 +42,8 @@ module Docs · 41 unmodified lines | ||
| 42 | 42 | |
| 43 | 43 | css('pre').each do |node| |
| 44 | 44 | node.content = node.content.gsub("\t", ' ' * 8) |
| 45 | + node['data-language'] = 'shell' if node.content.starts_with?('git ') | |
| 46 | + node['data-language'] = 'shell-session' if node.content[0] == '$' | |
| 45 | 47 | end |
| 46 | 48 | end |
| 47 | 49 | end |