mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-10 20:09:57 +00:00
Test to verify that reserved wikitext constructs are not parsed (#8384)
This commit is contained in:
parent
22286aa569
commit
39bd45002e
@ -0,0 +1,54 @@
|
|||||||
|
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>
|
Loading…
Reference in New Issue
Block a user