4,114
edits
No edit summary |
No edit summary |
||
Line 88: | Line 88: | ||
} | } | ||
function formatParagraphs(text) { | function formatParagraphs(text) { | ||
// Split the text into paragraphs and wrap each in a <span> | // Split the text into paragraphs and wrap each in a <span> | ||
Line 130: | Line 124: | ||
toggleImage(); | toggleImage(); | ||
}); | }); | ||
} | |||
function getImageHtml(image) { | |||
return '<div class="image-container">' + | |||
'<img src="' + image.src + '" alt="' + image.alt + '">' + | |||
'<div class="' + image.captionClass + '">' + image.caption + '</div>' + | |||
'</div>'; | |||
} | } | ||