@expensify/react-native-live-markdown 0.1.107 → 0.1.109

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -203,7 +203,7 @@ function parseText(target: HTMLElement, text: string, cursorPositionIndex: numbe
203
203
  if (text) {
204
204
  const dom = parseRangesToHTMLNodes(text, markdownRanges, markdownStyle);
205
205
 
206
- if (!rootSpan || rootSpan.innerHTML !== dom.innerHTML) {
206
+ if (!rootSpan || !rootSpan?.classList?.contains('root') || rootSpan.innerHTML !== dom.innerHTML) {
207
207
  targetElement.innerHTML = '';
208
208
  targetElement.innerText = '';
209
209
  target.appendChild(dom);