Skip to content

Commit de314a9

Browse files
Wevahjohnholdun
andauthored
Add li to the list of non-convertible parents for spans (#531)
Co-authored-by: John Holdun <[email protected]>
1 parent 9a961aa commit de314a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/dom/convert-to-paragraphs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function convertDivs($) {
1818
function convertSpans($) {
1919
$('span').each((index, span) => {
2020
const $span = $(span);
21-
const convertable = $span.parents('p, div').length === 0;
21+
const convertable = $span.parents('p, div, li').length === 0;
2222
if (convertable) {
2323
convertNodeTo($span, $, 'p');
2424
}

0 commit comments

Comments
 (0)