Add li to the list of non-convertible parents for spans (#531)

Co-authored-by: John Holdun <john@johnholdun.com>
pull/682/head
Nate Weaver 2 years ago committed by GitHub
parent 9a961aa595
commit de314a9728
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -18,7 +18,7 @@ function convertDivs($) {
function convertSpans($) { function convertSpans($) {
$('span').each((index, span) => { $('span').each((index, span) => {
const $span = $(span); const $span = $(span);
const convertable = $span.parents('p, div').length === 0; const convertable = $span.parents('p, div, li').length === 0;
if (convertable) { if (convertable) {
convertNodeTo($span, $, 'p'); convertNodeTo($span, $, 'p');
} }

Loading…
Cancel
Save