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) {
function formatParagraphs(text) {
    var paragraphs = text.split('\n').filter(p => p.trim() !== '');
    var paragraphs = text.split('\n').filter(p => p.trim() !== '');

Navigation menu