#10021·TiddlyWiki5

[Report] 5.4.1 HTML comment issue

Author: CodaCodrCreated Sep 8, 2026Updated Sep 8, 2026
Labelsneedswork

Problem Description

5.4.1+ has changed how HTML comments are parsed/consumed creating problems for legacy wikitext code. 5.3.8 and below does not have this issue.

Diagnostic

Using Evan Balster's legacy condition plugin, $else must follow $if, $elseif or $list. Formerly, it was possible to precede $else with <!-- COMMENT -->. In 5.4.1 that is no longer the case.

Expected behavior

TiddlyWiki should completely consume HTML comments before subsequent widgets can access the tree.

TiddlyWiki Configuration

  • Version: v5.4.1, v5.5.0 pre

Desktop

  • OS: Win11
  • Browser: FireFox latest

Additional context

It is clear %if% is a better mechanism and I now use it for all new code. As for older code, changing all $if to %if% is a slow process and cannot be done overnight. Either way, I believe 5.4.1 should not break legacy plugin code.