mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-10-02 08:50:46 +00:00
80631b35ea
Didn't implement the codeblock widget as suggested here... https://github.com/Jermolene/TiddlyWiki5/pull/1332#discussion_r22762157 ...because it would only return `undefined`.
40 lines
443 B
Plaintext
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 |