1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-30 05:19:57 +00:00

Test to verify that reserved wikitext constructs are not parsed (#8384)

This commit is contained in:
poc2go 2024-08-01 06:47:37 -04:00 committed by GitHub
parent 22286aa569
commit 39bd45002e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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>