Showing the changes to lib/docs/filters/github (1 of 7 files). Show all
Unified · Split
| @@ -9,7 +9,7 @@ module Docs · 8 unmodified lines | |||
| 9 | 9 | ||
| 10 | css('.highlight > pre').each do |node| | 10 | css('.highlight > pre').each do |node| |
| 11 | node['data-language'] = node.parent['class'][/highlight-source-(\w+)/, 1] | 11 | node['data-language'] = node.parent['class'][/highlight-source-(\w+)/, 1] |
| 12 | node.content = node.content.strip_heredoc.gsub(' ', ' ') | 12 | node.content = node.content.strip_heredoc |
| 13 | node.parent.replace(node) | 13 | node.parent.replace(node) |
| 14 | end | 14 | end |
| 15 | 15 | ||