module.exports = function linkListShortCode (data) {
    return `
${data.host == undefined ? '' : `<h2>${data.host}</h2>`}
<ol reversed>
${data.list.map(entry => 
    `<li>
        ${entry.replaced == undefined ? '' : `<span style="text-decoration:line-through;">${entry.replaced}</span> `}
        ${entry.url == undefined ? `${entry.title}` : `<a href="${entry.url}/">${entry.title}</a>`}
    </li>`
).join('\n')}
</ol>`;
}
module.exports = function linkListShortCode (data) {
    return `
${data.host == undefined ? '' : `<h2>${data.host}</h2>`}
<ol reversed>
${data.list.map(entry => 
    `<li>
        ${entry.replaced == undefined ? '' : `<span style="text-decoration:line-through;">${entry.replaced}</span> `}
        ${entry.url == undefined ? `${entry.title}` : `<a href="${entry.url}/">${entry.title}</a> `}
        ${entry.comment == undefined ? '' : ` - ${entry.comment}`}
    </li>`
).join('\n')}
</ol>`;
}
Add comment to link list shortcode
Add comment to link list shortcode
