Fix #1003: Formatted captions issue

This commit is contained in:
Albin Larsson
2018-06-08 13:31:29 +02:00
parent b12eeb0eb7
commit a80b31bf98
3 changed files with 3 additions and 2 deletions

View File

@ -222,7 +222,7 @@ const captions = {
if (changed) {
// Empty the container and create a new child element
utils.emptyElement(this.elements.captions);
const caption = utils.createElement('span');
const caption = utils.createElement('span', utils.getAttributesFromSelector(this.config.selectors.caption));
caption.innerHTML = content;
this.elements.captions.appendChild(caption);