I'm *very* enthusiastic about the new Wikify widget!  I was hurting for 
this feature ages ago when experimenting with generation of timeline SVGs 
and other visualizations in TiddlyWiki, and now that it's here I might 
revisit those utilities and kick them up a notch!

I have one minor gripe, for which I have already determined a workaround: 
 When rendering with text output, wiki markup is scrubbed from the input 
even when those rules are not applied.  This makes rendering non-formatted 
content, such as dynamically generated source code, somewhat more confusing 
than it should be.

Here's a bit of code demonstrating a place where the wikify widget's 
behavior is troublesome -- I attempt to render some SVG code, here sourced 
from a variable, and get nothing for reasons which might not be immediately 
clear.

!!Without Backtick 

<$vars radius=40 svg="<svg width=100 height=100><circle cx=50 cy=50 
r=<<radius>>/></svg>">
<$wikify name=svg_code text=<<svg>> >
<<svg_code>>
<pre><code><$text text=<<svg_code>>/></code></pre>
</$wikify>
</$vars>

The work-around I discovered after some brief experimentation?  Enclose the 
text in `code snippet` or ```code block``` markup as below, so that all 
content is unformatted.  Unfortunately, this will prevent any enclosed 
transclusions, widgets or macros from expanding in the $wikify widget.

!!With Backtick (macro call is not expanded)

<$vars radius=40 svg="`<svg width=100 height=100><circle cx=50 cy=50 
r=<<radius>>/></svg>`">
<$wikify name=svg_code text=<<svg>> >
<<svg_code>>
<pre><code><$text text=<<svg_code>>/></code></pre>
</$wikify>
</$vars>

This is far from a show-stopping problem, but it felt worth pointing out. 
 In the long run, I think that the nicest solution for wikifying with text 
output (especially code) would be a parsing mode which handles only 
variables, macros, widgets and transclusions.  (I would also suggest that 
this mode preserve whitespace.)

Anyway.  Keep up the great work, Jeremy, and don't burn yourself out trying 
to hurry it out the door!

-- Evan

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/30501eac-3d18-4f83-8cc0-a5cb15cce75a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to