This does it: <script> var here = window.story.findContainingTiddler(place); var tiddler = store.getTiddler(here.getAttribute("tiddler")); var title = tiddler.title; var pattern=/(^|\n)!{1,6}([^eE\n][^nN\n][^dD\n])[^\n]*\n/g; var matches=store.getTiddlerText(title).match(pattern); var out='<<tabs txtCurrentTab '; for (var i=0;i<matches.length;i++) { var m=matches[i].replace(/!{1,6}|\n/g,'').replace(/"/g,'\\x22').replace(/>>/g,'>\\>').replace(/\}\}\}/g,'}\\}\\}'); out+= '{{"'+m+'"}} {{"'+m+'"}} {{"'+title+'##'+m+'"}} '; } out += '>>'; return out; </script>
-- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To view this discussion on the web visit https://groups.google.com/d/msg/tiddlywiki/-/h_lfMANQc_8J. To post to this group, send email to tiddlywiki@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.