Skip to content

Commit

Permalink
Add li to the list of non-convertible parents for spans (#531)
Browse files Browse the repository at this point in the history
Co-authored-by: John Holdun <john@johnholdun.com>
  • Loading branch information
Wevah and johnholdun authored Aug 10, 2022
1 parent 9a961aa commit de314a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/dom/convert-to-paragraphs.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function convertDivs($) {
function convertSpans($) {
$('span').each((index, span) => {
const $span = $(span);
const convertable = $span.parents('p, div').length === 0;
const convertable = $span.parents('p, div, li').length === 0;
if (convertable) {
convertNodeTo($span, $, 'p');
}
Expand Down

0 comments on commit de314a9

Please sign in to comment.