ITADN

`wiki` renders nested template tags incorrectly/inconsistently

#4074Openmihawk90 创建于 2026-04-09
language-definitions
M
mihawk90commented
**Information** - Language: wiki - Plugins: unknown **Description** While using Obsidian I noticed that wiki formatted codeblocks were rendering incorrectly/inconsistently when using nested template tags. The issue is also reproducible on the test page. From what I can tell, it gets hung up on the first pair of closing brackets and ignores the rest of the line (or at least template tag). **Code snippet** [Test page](https://prismjs.com/test.html#language=wiki&text=%7B%7BTemplate1%7C%7B%7BTemplate2%7Carg1%7D%7D%7C%7B%7BTemplate2%7D%7D%7D%7D%0A%7B%7BTemplate1%7Carg1%7Carg2%7D%7D) <details> <summary>The code being highlighted incorrectly.</summary> ``` {{Template1|{{Template2|arg1}}|{{Template2}}}} {{Template1|arg1|arg2}} ``` </details> This is the same snippet in Wikipedia's Source editing mode with Syntax highlighter turned on: <img width="465" height="80" alt="Image" src="https://github.com/user-attachments/assets/064611ab-9f35-4ddc-9f46-32718bc9cae2" />
0 条评论