mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-10-31 07:06:19 +00:00
54 lines
893 B
Plaintext
54 lines
893 B
Plaintext
|
title: ReservedWikiText
|
||
|
description: Verify that reserved wikitext constructions are not parsed
|
||
|
type: text/vnd.tiddlywiki-multiple
|
||
|
tags: [[$:/tags/wiki-test-spec]]
|
||
|
|
||
|
title: Narrative
|
||
|
|
||
|
Verifies that certain wikitext constructions that are reserved for use by other tools are not parsed by TiddlyWiki.
|
||
|
+
|
||
|
title: TestTiddler
|
||
|
|
||
|
{%%}
|
||
|
(==)
|
||
|
{% %}
|
||
|
(= =)
|
||
|
{% something %}
|
||
|
(= something =)
|
||
|
Inline {% something %} substitution
|
||
|
Inline (= something =) substitution
|
||
|
Prefix-{%
|
||
|
Prefix-(=
|
||
|
%}-Postfix
|
||
|
=)-Postfix
|
||
|
{%
|
||
|
(=
|
||
|
%}
|
||
|
=)
|
||
|
+
|
||
|
title: Output
|
||
|
|
||
|
<$wikify name="parsetree" text={{TestTiddler}} output="parsetree">
|
||
|
<$text text={{{ [<parsetree>jsonget[0],[children],[0],[text]] }}}/>
|
||
|
</$wikify>
|
||
|
+
|
||
|
title: ExpectedResult
|
||
|
|
||
|
<p>
|
||
|
{%%}
|
||
|
(==)
|
||
|
{% %}
|
||
|
(= =)
|
||
|
{% something %}
|
||
|
(= something =)
|
||
|
Inline {% something %} substitution
|
||
|
Inline (= something =) substitution
|
||
|
Prefix-{%
|
||
|
Prefix-(=
|
||
|
%}-Postfix
|
||
|
=)-Postfix
|
||
|
{%
|
||
|
(=
|
||
|
%}
|
||
|
=)
|
||
|
</p>
|