1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-26 10:00:34 +00:00
TiddlyWiki5/tw5.com/tiddlers/TestingNewWikiText.tid
Jeremy Ruston 49a3cb8ede Allow for macros and classes at both run level and block level
Involving a bit of a refactoring of the parameters to the
$tw.Tree.Macro constructor
2012-05-28 15:51:52 +01:00

93 lines
1.7 KiB
Plaintext

title: TestingNewWikiText
type: text/x-tiddlywiki-new
! This is a heading
HelloThere
One two three four. With a link to HelloThere. And a link to TiddlyWiki and TiddlyWiki5. And a suppressed link to ~HelloThere. And now a [[pretty link|HelloThere]] and another pretty link: [[Introduction]].
Here's a paragraph with an embedded macro <<image "Motovun Jack.jpg">> and that was it.
{{{
This will be mono
}}}
Here is a macro <<list all>>
! This is a new heading
This is a paragraph
immediately after
that heading
----
* This is a list
* Of lots of items
** And subitems
*# And nested numbered lists inside ordinary lists
*# Yes
*## Definitely
*##* And then
*##** back
*##*** to items
*## And back to numbers once more
*# More numbering
* And back to items
----
; definitionile
: definitionate
; definitionilisation
: definitionatisative
----
This is a list with a class wrapped around it:
{{myclass andanotherone{
* One and one
** Two and three
* Four and five
** Six and Seven
}}}
And here's another one:
{{class1 class2{
* Un et deux
**{{class}} Two and three
* Four and five
** Trois et cinq
}}}
And here's a class wrapped around a heading:
{{class1{
! My heading
}}}
And here's a class assigned directly to a heading:
!!!!{{class1}} My very beautiful heading
---
Here are some HTML paragraph blocks:
<article class="hello">
This is my nice and simple block of text. HelloThere
</article>
And another:
<article class="hello" mysignal data-thing='Nothing'><div class="another" mysignal2 data-thing='NothingElse'>This time the text is all squashed up, without line breaks</div></article>
---
Macro calls can be inline like this: <<version>>
Or, at paragraph block level:
<<version>>