> No, the wikifier outputs directly into the DOM itself (as opposed to
> outputting raw HTML).
Hmm.. ok, let's consider the following.
There's a header formatter. And a user can write smth like
!!some header with a [[link|linkTarget]]
Now, either the formatter of headers or the wikifier behaves so that
there's not just a header
<h2>some header with a [[link|linkTarget]]</h2>
is created, but rather the tw-code the header is passed for further
wikification.
The header of the formatter is the following [1]:
{
name: "heading",
match: "^!{1,6}",
termRegExp: /(\n)/mg,
handler: function(w)
{
w.subWikifyTerm(createTiddlyElement(w.output,"h" +
w.matchLength),this.termRegExp);
}
}
I guess subWikifyTerm somehow continue within the wikification. But
what the createTiddlyElement returns and how subWikifyTerm deals with
that? By the way, there are subWikifyTerm and subWikifyUnterm methods
in [2]. Can anyone explain what do these "term" and "unterm" mean?
[1] https://github.com/TiddlyWiki/tiddlywiki/blob/master/js/Formatter.js
[2] https://github.com/TiddlyWiki/tiddlywiki/blob/master/js/Wikifier.js
PS one of the most important formatters that I'd like to create and
that I keep in mind is the following: instead of treating *** as a
start of a list item, I'd like to have TW treat ***s where "s" is a
symbol (or an html-entity) as a start of list item with "s" as a
marker (imagine "?" or "!" instead of standart • -- very useful
for mobile TW).
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywikidev?hl=en.