Hi Jim
My apologies for the late reply.
When static templates are rendered, they are saved as plain text. That's
why the raw html in the template is enclosed in backticks, to force it to
be treated as text rather than interpreted as HTML when it is parsed.
The mechanism for including content so that the HTML tags are rendered is
to use <$view field="text" format="htmlwikified" />. The easiest way to do
this is to put your content into a tiddler and transclude it the template
"$:/core/templates/html-tiddler". For example:
{{$:/static/toc||$:/core/templates/html-tiddler}}
Where $:/static/toc contains your invocation of the <<toc>> macro.
Let me know how it goes,
Best wishes
Jeremy.
On Sun, Dec 7, 2014 at 6:41 PM, Jim Lehmer <[email protected]> wrote:
> I replaced the toc macro with a single link widget and it has the same
> behavior, i.e., it outputs the text contained in the widget, but doesn't
> wrap it in an anchor tag.
>
> Reading in the documentation for the link widget, I note this:
>
> tv-wikilinks
>>
>> Links are suppressed if the macro tv-wikilinks evaluates to the string no.
>> For example:
>>
>> \define tv-wikilinks() no
>>
>>
> However, the static.tiddler.html tidder does not define that macro one way
> or another, and even trying to redefine it with a value of yes doesn't
> change behavior. I have searched through the npm package and found all
> places that is set to no, but none seem relevant here.
>
--
Jeremy Ruston
mailto:[email protected]
--
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.