I have a macro that ultimately transclude the content of a tiddlers.
If that tiddler is complex, and contains wikicode, it may fails. For instance, it does not produce a dotted liste with content such as
shoping list:
* sugar
* apple
* flour
A working but slow solution is to use the wikify widget. But this is slow. Although I’m sure I was already told about a similar problem, I don’t remember any solution and I can’t find a topic aout just that kind of need within this site.
Any way, here is my macro:
\define insert(codeInfo, consigne)
<$let display = {{{
[[$:/user/data/info/]addsuffix[$codeInfo$]is[tiddler]get[text]]
:else[[$consigne$]!is[blank]addprefix[<span class="consigne">]addsuffix[</span>]]
:else[[<span class="missing">NO INFORMATION about $codeInfo$!</span>]]
}}}>
<$wikify output=html name=wiki text=<<display>>><<wiki>></$wikify>
</$let>
\end
The use is simple: <<insert someTopic>>
.
Notice than even with wikify, I have a problem: To get the dotted list, I have to be in block mode, but when I only have a few words, it should be in inline mode. This issue can be fixed by different solutions. But if there was a method where I would not have to elaborate such a solution, then it would be great!