diff --git a/service.js b/service.js index c4577a3..6b7d9ad 100644 --- a/service.js +++ b/service.js @@ -184,17 +184,10 @@ class BesService { this.statusDiv.title = 'BesService je registriran.' return [{ text: '<' + node.tagName + '/>', node: node, markup: true }] } else { - // Surround inline element with dummy .... - let data = [ - { text: '<' + node.tagName + '>', node: node, markup: true } - ] - for (const el2 of node.childNodes) { + // Inline elements require no markup. Keep plain text only. + let data = [] + for (const el2 of node.childNodes) data = data.concat(await this.proof(el2)) - } - data.splice(data.length, 0, { - text: '', - markup: true - }) return data }