Open
Description
- In the https://www.draftail.org/ documentation I searched for: nested inline style.
- In the issues / pull requests, I searched for: nested inline style
- In Stack Overflow, I searched for: draftjs exporter nested inline style
I have this block
{
"key": "",
"text": "Bold Italic Underline",
"type": "unstyled",
"depth": 0,
"inlineStyleRanges": [
{"offset": 0, "length": 21, "style": "BOLD"},
{"offset": 5, "length": 16, "style": "ITALIC"},
{"offset": 12, "length": 9, "style": "UNDERLINE"},
],
"entityRanges": [],
"data": {},
},
I expect it to render HTML as
<p><strong>Bold <em>Italic <u>Underline</u></em></strong></p>
but it renders HTML as
<p><strong>Bold </strong><strong><em>Italic </em></strong><strong><em><u>Underline</u></em></strong></p>
Is it a bug or is there any configuration?