Skip to content

Commit

Permalink
fix: cover icons as well
Browse files Browse the repository at this point in the history
  • Loading branch information
buuhuu committed Feb 13, 2024
1 parent 7386a5c commit 79e40c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/aem.js
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ function decorateBlock(block) {
block.querySelectorAll(':scope > div > div').forEach((cell) => {
const firstChild = cell.firstElementChild;
if ((!firstChild && cell.textContent.trim())
|| (firstChild && ['STRONG', 'EM', 'A', 'PICTURE'].includes(firstChild.tagName))) {
|| (firstChild && ['SPAN', 'STRONG', 'EM', 'A', 'PICTURE'].includes(firstChild.tagName))) {
const p = document.createElement('p');
p.append(...cell.childNodes);
cell.replaceChildren(p);
Expand Down

0 comments on commit 79e40c0

Please sign in to comment.