History

fix images in C/C++ docs

adjusting the html_filter to work with the new URIs

ClasherKasten committed 3 years ago

Commit 503bfec1 parent f8161051 file · +1 −1Browse files

Unified · Split

lib/docs/filters/cppref/clean_html.rb+1−1
@@ -106,7 +106,7 @@ module Docs · 105 unmodified lines
106 end106 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 end110 end
111 111
112 # temporary solution due lack of mathjax/mathml support112 # temporary solution due lack of mathjax/mathml support