2015-01-18 18:39:00 +00:00
|
|
|
created: 20150117184156000
|
|
|
|
modified: 20150117184616000
|
2014-06-12 17:01:33 +00:00
|
|
|
title: $:/editions/tw5.com/wikitext-macros
|
|
|
|
tags: $:/tags/Macro
|
|
|
|
|
|
|
|
\define wikitext-example(src)
|
2015-01-18 18:39:00 +00:00
|
|
|
<div class="doc-example">
|
|
|
|
|
2014-06-12 17:01:33 +00:00
|
|
|
```
|
|
|
|
$src$
|
|
|
|
```
|
|
|
|
|
2015-01-18 18:39:00 +00:00
|
|
|
That renders as:
|
2014-06-12 17:01:33 +00:00
|
|
|
|
|
|
|
$src$
|
|
|
|
|
2015-01-18 18:39:00 +00:00
|
|
|
... and the underlying HTML is:
|
2014-06-12 17:01:33 +00:00
|
|
|
|
|
|
|
$$$text/vnd.tiddlywiki>text/html
|
|
|
|
$src$
|
|
|
|
$$$
|
2015-01-18 18:39:00 +00:00
|
|
|
</div>
|
2014-06-12 17:01:33 +00:00
|
|
|
\end
|
|
|
|
|
|
|
|
\define wikitext-example-without-html(src)
|
2015-01-18 18:39:00 +00:00
|
|
|
<div class="doc-example">
|
|
|
|
|
2014-06-12 17:01:33 +00:00
|
|
|
```
|
|
|
|
$src$
|
|
|
|
```
|
|
|
|
|
2015-01-18 18:39:00 +00:00
|
|
|
That renders as:
|
2014-06-12 17:01:33 +00:00
|
|
|
|
|
|
|
$src$
|
2015-01-18 18:39:00 +00:00
|
|
|
</div>
|
2014-06-12 17:01:33 +00:00
|
|
|
\end
|
2015-01-11 10:55:22 +00:00
|
|
|
|
|
|
|
\define tw-code(tiddler)
|
2015-01-11 17:15:27 +00:00
|
|
|
<$codeblock language={{$tiddler$!!type}} code={{$tiddler$}}/>
|
2015-01-11 10:55:22 +00:00
|
|
|
\end
|
|
|
|
|
|
|
|
\define tw-code-link(tiddler)
|
|
|
|
[[$tiddler$]]:
|
|
|
|
|
|
|
|
<<tw-code $tiddler$>>
|
|
|
|
\end
|