fix images in C/C++ docs

adjusting the html_filter to work with the new URIs
pull/2018/head
ClasherKasten 2 years ago
parent f8161058c7
commit 503bfecea6

@ -106,7 +106,7 @@ module Docs
end end
css('img').each do |node| css('img').each do |node|
node['src'] = node['src'].sub! %r{http://en.cppreference.com/common/([^"']+?)\.svg}, 'http://upload.cppreference.com/mwiki/\1.svg' node['src'] = node['src'].sub! %r{https://upload.cppreference.com/mwiki/(images/[^"']+?)}, 'http://upload.cppreference.com/mwiki/\1'
end end
# temporary solution due lack of mathjax/mathml support # temporary solution due lack of mathjax/mathml support

Loading…
Cancel
Save