Page MenuHomePhabricator

Pasting {{template}} in VisualEditor creates distorted markup
Closed, DuplicatePublic

Description

  1. Start creating a page on mediawiki.org.
  2. Enter some content.
  3. Copy and paste this line:
{{TechComPlanningMeeting/footer}}

Expected

To see an accurate preview in the editor, and for the saved content and difference to contain {{TechComPlanningMeeting/footer}} or something semantically equivalent to it.

a.png (784×2 px, 147 KB)
{{TechComPlanningMeeting/footer}}

Actual

Some kind of corrupted partially flattened/substituted version of the templates' internal contents.

b-ve.png (1×2 px, 186 KB)
b-wt.png (1×1 px, 563 KB)