Persist modified alt to image element (#408)
Signed-off-by: Christos <987149+christosle@users.noreply.github.com> Signed-off-by: Christos <987149+christosle@users.noreply.github.com>
+3 · 1 file changed
-
assets/js/index.js+3 −0
@@ -300,6 +300,9 @@ function fileClosure(){ // Insert caption image.insertAdjacentHTML('afterend', desc.outerHTML); } + + // Persist modified alt to image element + image.alt = alt }); hljs.initHighlightingOnLoad();