Skip to content

Commit 503bfec

Browse files
committed
fix images in C/C++ docs
adjusting the html_filter to work with the new URIs
1 parent f816105 commit 503bfec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/docs/filters/cppref/clean_html.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def call
106106
end
107107

108108
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'
110110
end
111111

112112
# temporary solution due lack of mathjax/mathml support

0 commit comments

Comments
 (0)