sukima / tiddlywiki-reveal-js

Embed Reveal.js presentations inside a TiddlyWiki
https://sukima.github.io/tiddlywiki-reveal-js/
22 stars 6 forks source link

SlideCodeBlock with slides created from tiddlers using list widget #3

Open kookma opened 4 years ago

kookma commented 4 years ago

Assume you have created a presentation using

Title: Short Presentation Text:

<$presentation>
<$list filter="[tag[slide]sort[title]]">
<$slide tiddlerTitle={{!!title}} backgroundColor={{!!color}}>
<$transclude mode="block" />
</$slide>
</$list>
</$presentation>

and then some slides have one or two line of codes, there is no way to programmatically use $slidecodeblock

kookma commented 4 years ago

One more point the $slidecodeblock seems only work inside $slide it worth to have it working outside $slide. This is beneficial when slides are prepared as separate tiddlers

sukima commented 3 years ago

What I did was make a code tiddler and then transcluded it inside a <$slidecodeblock when it is in the slide and a <$codeblock> when it is not in a slide.

I agree that having it work outside the slide might be worth it. Sadly I don't have the resources to do that myself anymore.