User:SKnutsen/vector-2022.js

function flowText { const paragraphs = document.querySelectorAll(".vector-body p"); texLinebreak.texLinebreakDOM(paragraphs, {       align: 'justify'	}); console.log("Loaded tex-linebreak") }

mw.loader.getScript('https://unpkg.com/tex-linebreak2@latest/dist/lib.js') .then(		function {			//flowText;	    },	    function  {	    	console.log("Failed to load tex-linebreak script.");	    }	);