From 503bfecea6647fe65f6e269bb76cacce6cea99fa Mon Sep 17 00:00:00 2001 From: ClasherKasten Date: Wed, 26 Jul 2023 17:30:40 +0200 Subject: [PATCH] fix images in C/C++ docs adjusting the html_filter to work with the new URIs --- lib/docs/filters/cppref/clean_html.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docs/filters/cppref/clean_html.rb b/lib/docs/filters/cppref/clean_html.rb index 7c65c726..d7f564ff 100644 --- a/lib/docs/filters/cppref/clean_html.rb +++ b/lib/docs/filters/cppref/clean_html.rb @@ -106,7 +106,7 @@ module Docs end 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 # temporary solution due lack of mathjax/mathml support