-
Hello, I'm very much struggling to navigate the parsetree and would like some help with the following problem i have run into. I have widget for rendering ruby elements it looks like this in a tiddler which is generally all well and good for normal use (see: example), but i am hitting problems with my implementation of this with lists: for all tiddlers tagged fruit, make a ruby elements with tiddler name:
This however renders as: Each subsequent item picks up previous elements rubys. I have uploaded an example here: http://welford.github.io/ruby.html The code to render this is:
I'm sure this is something to do with my misuse of the parseTreeNode of the containing tiddler - does anyone have pointers on how to achieve the correct behaviour here. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
In case it makes things clearer, i am trying to take this:
then create the wiki parser object
which should look like this:
then replace the twsr_replace_me section with whatever was between <$r> and </$r> e.g.
James |
Beta Was this translation helpful? Give feedback.
-
Went with this:
|
Beta Was this translation helpful? Give feedback.
Went with this: