Replace a part of string upon site build/deployment

As with your other question, I hope my post Work in progress markdown responsive images (including figure shortcode) can help you, with a render-image render-hook.