However I run into issues when I try to disable the wikitext parsing to avoid turning -- into – , therefore I can’t use CSS variable. I tried to set the rule in “Typography Test Page” but no dice, wikify seems to use the default wikitext parser rules. What am I missing here ?
“How to apply parsing rules to the output of the wikify widget?”
My answer would be “Don’t”.
I have used it to make use of the HTML it generates, but of late I have being avoiding wikification altogether either using functions or transclusions.
Perhaps you can you use some of the other options/parameters on the wikifiy widget to get what you are after?
Why do you want to do this, what is the root problem, or justification to do this?
On the page you link to, there is no “Typography preview” tiddler and there is no “Typography Test Page” which is transcluded in your code. So we cannot test your code.
Can we write inline style tag like this? I’m not sure if they will get properly added and removed, so I always use them in a separate file, and add \rules except dash list horizrule on the dedacated style tiddler.
This is in a tiddler called “Typography Test Page”.
I want to use the content of that tiddler in an iframe in order to isolate the style from the styling coming from tiddlywiki, so I tried to do this:
<$let style={{!!style}} > <iframe srcdoc={{Typography Test Page}}/> </$let>
But the variable is not applied, so that’s why I was trying to use wikify.
I’d like to keep the html code separated from the iframe element (two separate tiddler), so I tried to apply parsing rule with /rules but wikify seems to ignore it
Just gonna say this: asking for folks to take a look and modifying the same code at the same time is annoying. Every time I refreshed I received a different set of code.
It does but as you can see the styling is leaking to the rest of the UI
Sorry! But no it still doesnt work
I will put the code here it will be easier (and this way the code won’t change). The tiddler “Typography preview” contains this:
I’m using a typed block to set the parsing rules but wikify is ignoring the rule. My style variable is correctly parsed, but -- becomes – despite the rules
Yes, because the * selector means absolutely every element and hardcoded STYLE HTML-tag is page global. So you need to be more specific with the selector eg; .tc-tiddler-frame or something …
Yes I guess I could simply use nested css or specific css selector, but the issue now is that the html element will inherit tiddlywiki styling … maybe I could reset that with all:initial tho. If there is no other way I’ll probably do that, I liked the idea of using an iframe to “sandbox” the preview but I can live without that ^^
Co-incidentally because they are related to “How to apply parsing rules to the output of the wikify widget?”. I was thinking if I could “use functions or backtick parameters” as wikify (to evaluate wikitext or tiddlywiki script), in code, not only in the final render.
I think within this there is away to address this Topic, which I will share when found
I may share my research if anyone is interested.
[After thoughts]
What if using transclusion there was a way to parametrise or point to pragma to apply to the transclusion? In this case; \rules except dash list horizrule perhaps this could be done in a custom widget and genesis of the transclude widget?