diff --git a/lib/docs/filters/git/clean_html.rb b/lib/docs/filters/git/clean_html.rb index 6b76e1f0..b2433a76 100644 --- a/lib/docs/filters/git/clean_html.rb +++ b/lib/docs/filters/git/clean_html.rb @@ -42,6 +42,8 @@ module Docs css('pre').each do |node| node.content = node.content.gsub("\t", ' ' * 8) + node['data-language'] = 'shell' if node.content.starts_with?('git ') + node['data-language'] = 'shell-session' if node.content[0] == '$' end end end