Tony, thank you for your effort, but non of your possible solution fix the problem.
As you can see in http://prueba2020.tiddlyspot.com/#TiddlerLevel1%20wrong , the TiddlerLevel2.3 is inside code block of tiddler TiddlerLevel2.2. It doesn´t matter if I use h2 tags or transclude widget in the macro. Thanks again. El martes, 18 de febrero de 2020, 18:13:08 (UTC-5), TonyM escribió: > > All, > > This is a re-occurring issue for users. > > As demonstrated in my solutions to this issue you can see that the > standard solution is the absence of something, a blank line, however to > confuse matters if you use html such as the h2 tag it is no longer an > issue. When there are too many exceptions it is hard to remember the rule, > especially when the rule is use "nothing". > > I wonder if the list widget provided a parameter to force block or inline > mode on its content or permitted a keyword one could provide in the place > of the blank line it would be easier to document for example; > > \define myMacro() > <$list filter="[tag[$(currentTiddler)$]sort[content-index]]"> > *blockmode* > !{{!!title}} > {{!!text}} > </$list> > \end > > The documentation can thus say if the content of the list widget begins > with blockmode the content will be displayed in block mode, needed to get > some wikitext to display correctly. Alternatively you can use a blank line. > > Regards > Tony > > On Wednesday, February 19, 2020 at 9:35:17 AM UTC+11, TonyM wrote: >> >> Sergio, >> >> There is a little trick here, If you provide a blank line after the list >> widget opens the content will be treated as a block mode >> \define myMacro() >> <$list filter="[tag[$(currentTiddler)$]sort[content-index]]"> >> >> !{{!!title}} >> {{!!text}} >> </$list> >> \end >> >> >> However before I remembered that little detail I thought perhaps if when >> displaying the tiddler, you use the transclude (Current tiddler text) >> instead so you can specify mode=block >> >> \define myMacro() >> <$list filter="[tag[$(currentTiddler)$]]"> >> <h2>__{{!!title}}__</h2> >> <$transclude mode=block/> >> </$list> >> \end >> >> However this version will use the caption field before the title if it >> exists. >> \define myMacro() >> <$list filter="[tag[$(currentTiddler)$]]"> >> <h2><$link> {{{ [all[current]get[caption]] ~[all[current]get[title]] }}} >> </$link></h2> >> <$transclude mode=block/> >> </$list> >> \end >> >> Regards >> Tony >> >> On Tuesday, February 18, 2020 at 12:01:51 PM UTC+11, Sergio Aleman wrote: >>> >>> Hi everybody, >>> I have a problem with a macro and wikify widget. >>> I have done a macro to get all tiddlers that have a tag with the same >>> name as the title tiddler of the tiddler that execute the macro. >>> >>> this is the code: >>> >>> \define myMacro() >>>> <$list filter="[tag[$(currentTiddler)$]sort[content-index]]"> >>>> !{{!!title}} >>>> {{!!text}} >>>> </$list> >>>> \end >>> >>> >>> >>> I used the output of the macro in a wikify widget to get the output I >>> want. >>> >>> <$wikify name="snapshot" text="<<myMacro>>" output="html"> >>>> <<snapshot>> >>>> </$wikify> >>> >>> >>> The problem is that when a tiddler has a "monospace block format" and >>> this block has a line that starts with a double slash(//), the output of >>> wikify widget is wrong. >>> >>> I created a tiddlyspot tiddlywiki to show you the problem. ( >>> http://prueba2020.tiddlyspot.com/) >>> >>> The macro (http://prueba2020.tiddlyspot.com/#MyMacro) >>> The tiddler with wikify widget in which you could see the problem ( >>> http://prueba2020.tiddlyspot.com/#TiddlerLevel1%20wrong) >>> The tiddler with the result I expected.( >>> http://prueba2020.tiddlyspot.com/#TiddlerLevel1%20ok) >>> >>> Thanks in advance. >>> >> -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/2e3975d5-9d78-4dd0-8115-694c90117c3a%40googlegroups.com.
