Nested elements in HTML to XWiki 2.1 conversion

Hello all,

when converting HTML to XWiki 2.1 syntax nested elements like strong or em are not handled as I would expect.
The example HTML

<strong>this <strong>text</strong> should be bold</strong>, not this part

gets converted to

**this text** should be bold, not this part

but I would expect

**this text should be bold**, not this part

Is this intended behaviour?

Hi,

Indeed, the xwiki/2.0+ syntax doesn’t support nested styles but it would make more sense to support what you mentioned, in the HTML parser.

Note that for the xwiki/2.0+ parser, we support this: xwiki-rendering/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xwiki20/src/test/resources/xwiki20/specific/bold/bold2.test at 90b7bdd804f8cf9788cc0b6b1ce4172dd7dbe3ed · xwiki/xwiki-rendering · GitHub

Please feel free to open a jira issue.

Thx