MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 178: Line 178:
         $(this).css('overflow-y', 'hidden');
         $(this).css('overflow-y', 'hidden');
     });
     });
function formatParagraphs(text) {
    var paragraphs = text.split('\n').filter(p => p.trim() !== '');
    return paragraphs.map(p => '<p>' + p.trim() + '</p>').join('');
}


     // Description formatting for Community Cards
     // Description formatting for Community Cards

Navigation menu