Hi SS
> My knowledge of the innards being so limited, I make mistakes in choosing how
> to properly convey my ideas.
>
> It looks like all of the format attributes remove the html or return it in
> text. I am looking for the html not to be removed.
OK, just to be clear, the format “htmlwikified” will give you the HTML
resulting from wikifying the target text. You get back the entire HTML string
including tags.
What do you mean by the HTML not being removed? Can you show a snippet of
wikitext with the output you’re looking for?
> I believe I am trying to see if the $view widget could have a format
> attribute (say called): wikified
>
> The description of what it does would perhaps be: The field is wikified
> according to the mode attribute and the resulting HTML returned (ie HTML
> elements will NOT be removed)
It sounds like a description of the transclude widget….
Best wishes
Jeremy
>
>
>
> On Thursday, February 7, 2019 at 6:35:09 PM UTC+7, Jeremy Ruston wrote:
> Hi SS
>
> To answer your original question, there is a big difference between the view
> widget and the transclude widget.
>
> The view widget computes and renders a single string. The transclude widget
> recursively renders the target tiddler.
>
> That means that the view widget is a single item as far as the refresh
> mechanism is concerned. The results of the transclude widget, though, is a
> complete render tree, which can be selectively refreshed.
>
> We do have three formats for the view widget that wikify the string:
> htmlwikified, plainwikified, and htmlencodedplainwikified. These are all used
> deep in the saving process where refreshing isn't a concern.
>
> Best wishes
>
> Jeremy
>
> On Wednesday, February 6, 2019 at 4:53:53 AM UTC, S. S. wrote:
> Could I please have some opinions on - if adding a wikified format to the
> $view widget so that:
>
> <$view field="caption" format="wikified"/>
>
> Would give the exact same result as:
>
> {{!!caption}}
>
> Then if this could result in a feasible solution for Github issues:
>
> #3624 <https://github.com/Jermolene/TiddlyWiki5/issues/3624> Table of
> Contents toc-caption macro awkward behaviour
> #3753 <https://github.com/Jermolene/TiddlyWiki5/issues/3753> list-links &
> list-links-draggable : issue with empty caption.
>
> My idea is to propose the below solution as a fix for the issue of an empty
> caption field returning an empty result instead of the title:
>
> <$view field="caption" format="wikified"><$view field="title"/></$view>
>
> I do not have the capability to write the changes for a pull request myself,
> thus if this solution is found interesting, someone may implement it!
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWikiDev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <mailto:[email protected]>.
> To post to this group, send email to [email protected]
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywikidev
> <https://groups.google.com/group/tiddlywikidev>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywikidev/93247384-7729-4345-98a4-78f7b38560c9%40googlegroups.com
>
> <https://groups.google.com/d/msgid/tiddlywikidev/93247384-7729-4345-98a4-78f7b38560c9%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" 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/tiddlywikidev.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywikidev/2D3B02E0-B26C-4692-9528-C98C9D4E8623%40gmail.com.
For more options, visit https://groups.google.com/d/optout.