mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-08-30 13:02:53 +00:00
47 lines
628 B
Plaintext
47 lines
628 B
Plaintext
![]() |
created: 20150531155638729
|
||
|
modified: 20150601094935758
|
||
|
tags: $:/tags/Macro
|
||
|
title: $:/editions/tw5.com/wikitext-macros
|
||
|
type: text/vnd.tiddlywiki
|
||
|
|
||
|
\define wikitext-example(src)
|
||
|
<div class="doc-example">
|
||
|
|
||
|
```
|
||
|
$src$
|
||
|
```
|
||
|
|
||
|
Affichera ceci :
|
||
|
|
||
|
$src$
|
||
|
|
||
|
... Génération du HTML :
|
||
|
|
||
|
$$$text/vnd.tiddlywiki>text/html
|
||
|
$src$
|
||
|
$$$
|
||
|
</div>
|
||
|
\end
|
||
|
|
||
|
\define wikitext-example-without-html(src)
|
||
|
<div class="doc-example">
|
||
|
|
||
|
```
|
||
|
$src$
|
||
|
```
|
||
|
|
||
|
Affichera ceci :
|
||
|
|
||
|
$src$
|
||
|
</div>
|
||
|
\end
|
||
|
|
||
|
\define tw-code(tiddler)
|
||
|
<$codeblock language={{$tiddler$!!type}} code={{$tiddler$}}/>
|
||
|
\end
|
||
|
|
||
|
\define tw-code-link(tiddler)
|
||
|
[[$tiddler$]]:
|
||
|
|
||
|
<<tw-code $tiddler$>>
|
||
|
\end
|