mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-21 08:50:05 +00:00
Fix importing of function definitions
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
title: CustomWidget-Override-Codeblock
|
||||
description: Usage of genesis widget with attributes starting with dollar signs
|
||||
type: text/vnd.tiddlywiki-multiple
|
||||
tags: [[$:/tags/wiki-test-spec]]
|
||||
|
||||
title: Output
|
||||
|
||||
\whitespace trim
|
||||
\import Definition
|
||||
<$codeblock code="Kangaroo"/>
|
||||
<$codeblock code={{Subject}}/>
|
||||
<$let test="Tiger">
|
||||
<$codeblock code=<<test>>/>
|
||||
</$let>
|
||||
_
|
||||
title: Definition
|
||||
|
||||
\whitespace trim
|
||||
\function <$codeblock>(code)
|
||||
<$codeblock code={{{ [<code>addprefix[£]addsuffix[@]] }}}/>
|
||||
\end
|
||||
_
|
||||
title: Subject
|
||||
|
||||
Python
|
||||
_
|
||||
title: ExpectedResult
|
||||
|
||||
<p><pre><code>£Kangaroo@</code></pre><pre><code>£Python@</code></pre><pre><code>£Tiger@</code></pre></p>
|
||||
Reference in New Issue
Block a user