List of steps to reproduce (step by step, including full links if applicable):
- Write long paragraph in an editor with syntax highlighting.
- Type {{ before the paragraph.
- See how the entire thing gets highlighted
- Crash if paragraph is long enough.
What happens?: When {{ is typed in front of a large paragraph in the source code editor of Wikipedia. The browser tab resource usage causes either a crash or unresonable slowness. This is probably due to the purple highlighting of the subsequent text, or due to a frontend search of the corresponding template.
This is probably also a less visible issue when pages are parsed on the backend.
What should have happened instead?: Possible fixes include limiting the length of valid templates, or prohibiting newline characters, as is done with [[ links.
Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.: whatever en.wikipedia.org is using. Browser is Firefox 88.0 . Bug probably present in all browsers. Can't trigger the crash with chrome.