Newer
Older
pre-www / src / assets / js / blocks / paragraph.js
window.addEventListener('load', (event) => {

    const lists = document.querySelectorAll('.block-paragraph ul, .block-paragraph ol')

    lists.forEach(list => {
        const items  = list.querySelectorAll('li')
        items.forEach(item => {
            const content = item.innerHTML
            item.innerHTML = `<span>${content}</span>`
        })
    })

})