1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-10-02 08:50:46 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/system/wikitext-macros.tid
Tobias Beer 80631b35ea updated NestedLists, renamed to GroupedLists added tw-code macro
Didn't implement the codeblock widget as suggested here...

https://github.com/Jermolene/TiddlyWiki5/pull/1332#discussion_r22762157

...because it would only return `undefined`.
2015-01-11 11:55:22 +01:00

40 lines
443 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)
<pre><code><$view tiddler="$tiddler$" format="text"/></code></pre>
\end
\define tw-code-link(tiddler)
[[$tiddler$]]:
<<tw-code $tiddler$>>
\end