mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-27 10:30:28 +00:00
557d1e9207
As per fix.... https://github.com/Jermolene/TiddlyWiki5/pull/1332#issuecomment-69499836 Tested, working.
40 lines
438 B
Plaintext
40 lines
438 B
Plaintext
title: $:/editions/tw5.com/wikitext-macros
|
|
tags: $:/tags/Macro
|
|
|
|
\define wikitext-example(src)
|
|
```
|
|
$src$
|
|
```
|
|
|
|
Renders as:
|
|
|
|
$src$
|
|
|
|
In HTML:
|
|
|
|
$$$text/vnd.tiddlywiki>text/html
|
|
$src$
|
|
$$$
|
|
|
|
\end
|
|
|
|
\define wikitext-example-without-html(src)
|
|
```
|
|
$src$
|
|
```
|
|
|
|
Renders as:
|
|
|
|
$src$
|
|
|
|
\end
|
|
|
|
\define tw-code(tiddler)
|
|
<$codeblock language={{$tiddler$!!type}} code={{$tiddler$}}/>
|
|
\end
|
|
|
|
\define tw-code-link(tiddler)
|
|
[[$tiddler$]]:
|
|
|
|
<<tw-code $tiddler$>>
|
|
\end |