Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(auto-render): concatenate content of successive text nodes (#3422)
* fix(auto-render): concatenate text nodes Concatenate successive text nodes to prevent auto-render from skipping math input when browsers split text nodes with long textContent. * Remove siblings only when math found Only remove siblings when math expressions were found to prevent removal of nodes that do not contain math. * Skip siblings if they do not contain math * Fixed typo in comments * Added first tests for large test nodes * Expanded testing to compare renderMathInElement with renderMathInText * Simplified text node test * Change description of test * Update contrib/auto-render/auto-render.js Co-authored-by: marcoesters <marco.esters@duke.edu> Co-authored-by: ylemkimon <y@ylem.kim>
- Loading branch information
1 parent
99be728
commit 4d3fdd8
Showing
2 changed files
with
59 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters