I hope to use a filter to determine whether it is in https status, but when the button is clicked, the outermost filter seems to affect it, causing the click to be invalid.
In your two outer list widgets you are testing if something is true, just add variable=~ or variable=nul so the currentTiddler is not changed and it seems to work
Itâs a little tighter and easier to understand. And it takes care of sequestering the variable away too (in this case, into âconditionâ rather than âignoreâ)
Good point @Flibbles this is a good use case for the new conditional syntax.
As mentioned elsewhere, within the if or else if sections, the variable <<condition>> also contains the result of the filter in the if or elseif (if there was a result).
Yes, I tried to use if to write it for the first time, but at that time I forgot to switch the type to text/vnd.tiddlywiki. It does not work in markdown. It is really convenient for if to automatically have variable isolation. Itâs also different to write multiple filters.
I donât use markdown except to store content obtained for other sources like chat GPT but it would be sad to loose the TiddlyWiki script features.
I imagen work could be done on the markdown parser to include some if not all TiddlyWiki script, so perhaps raise this in a new thread.
However I just tried a placing the code from the TableOfContents tiddler in a markdown tiddler and it works.
This is markdown header
{{TableOfContents}}
<hr>
<div class="tc-table-of-contents">
<<toc-selective-expandable 'TableOfContents'>>
</div>
This is markdown footer;
At the top I just trancluded the tiddler, and at the bottom inserted the code;
Both work
However since the %if is not working try the excise button and replace the code with a transclusion, then edit the tiddler it created, and set its type to text/vnd.tiddlywiki, I tested it and it works.
I suspect the markdown plugin has not been updated to be aware of this new code syntax and itâs just an oversight.
Note: I am using the core markdown plugin, $:/plugins/tiddlywiki/markdown are you?
Perhaps find the plugin in github and raise an issue.
Okay, I looked into it. Itâs not as simple as adding âconditionalâ to that rules file.
Somebody has to go into the markdown-it-tiddlywiki.js file and program in a rule. It shouldnât be more than about 15 or 20 lines, but itâd probably need some tests to go with it. Whoâs been revamping the markdown? Itâs very different from how I remember it when I made Relink. Whoever did it would be the best person for this.