I have the following code:
const textEncoder = new TextEncoder();
const buffer = textEncoder.encode(`{\\rtf1 A{}A\\fs16}`).buffer;
const doc = new RTFJS.Document(buffer, {}),
renderedDoc = await doc.render(),
div = document.createElement("div");
div.append(...renderedDoc);
After execution, the variable div.innerHTML has the value
<div style="text-align: left;"><span>A</span><span style="font-size: 8pt;">A</span></div>.
I would expect the variable to have the value
<div><span>AA</span></div>
(the same as for the rtf document {\\rtf1 AA\\fs16} without the group).
I have the following code:
After execution, the variable
div.innerHTMLhas the value<div style="text-align: left;"><span>A</span><span style="font-size: 8pt;">A</span></div>.I would expect the variable to have the value
<div><span>AA</span></div>(the same as for the rtf document
{\\rtf1 AA\\fs16}without the group).