From d4d146dbe3780dddc8ae975761f9cc37d69a15a1 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Sat, 12 Dec 2015 16:01:05 -0800 Subject: [PATCH] Docs: Replace `data-src` attribute with `src` in highlighted code; fixes #18558 [skip sauce] --- docs/_plugins/highlight_alt.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_plugins/highlight_alt.rb b/docs/_plugins/highlight_alt.rb index 1fc9f5d2a8..d1ed9ccff0 100644 --- a/docs/_plugins/highlight_alt.rb +++ b/docs/_plugins/highlight_alt.rb @@ -59,7 +59,7 @@ eos end def remove_holderjs(code) - code = code.gsub(/"holder.js.+?"/, '"..."') + code = code.gsub(/data-src="holder.js.+?"/, 'src="..."') end def render_rouge(code)