Skip to content

wiki renders nested template tags incorrectly/inconsistently #4074

@mihawk90

Description

@mihawk90

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

The code being highlighted incorrectly.
{{Template1|{{Template2|arg1}}|{{Template2}}}}
{{Template1|arg1|arg2}}

This is the same snippet in Wikipedia's Source editing mode with Syntax highlighter turned on:

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions