MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 179: Line 179:
     });
     });
      
      
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
function formatCommunityCardDescriptions() {
function formatCommunityCardDescriptions() {

Navigation menu