List of steps to reproduce (step by step, including full links if applicable):
- Reply to the last comment on https://en.wikipedia.org/wiki/User_talk:Ahecht/sandbox
- Switch to Visual mode
- Type template syntax (e.g. {{tq|test}}) and hit "Reply"
What happens?:
The tool correctly wraps the {{tq|test}} part in <nowiki></nowiki> tags, but that causes the previously unclosed <nowiki> in a previous section to be parsed, causing most of the page to appear incorrectly.
What should have happened instead?:
The appearance of the rest of the page should remain unmodified, which would entail closing the previous <nowiki> or making it self-closing (e.g. <nowiki />).
Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc: