adjusting the html_filter to work with the new URIs
Unified · Split
| @@ -106,7 +106,7 @@ module Docs · 105 unmodified lines | |||
| 106 | end | 106 | end |
| 107 | 107 | ||
| 108 | css('img').each do |node| | 108 | css('img').each do |node| |
| 109 | node['src'] = node['src'].sub! %r{http://en.cppreference.com/common/([^"']+?)\.svg}, 'http://upload.cppreference.com/mwiki/\1.svg' | 109 | node['src'] = node['src'].sub! %r{https://upload.cppreference.com/mwiki/(images/[^"']+?)}, 'http://upload.cppreference.com/mwiki/\1' |
| 110 | end | 110 | end |
| 111 | 111 | ||
| 112 | # temporary solution due lack of mathjax/mathml support | 112 | # temporary solution due lack of mathjax/mathml support |