> For me the main need in HTML formatting is the ability to insert
> internal links to other tiddlers, and secondly the ability to use some
> very selected macros that don't mess up the validity of HTML.
> So I modified the original plugin in order to wikify only the elements
> I need to be wikified (those marked with class="wikify").

> Since I use this modified version in a TiddlyWiki that I'm going to
> publish, I'm asking if you wish to update your plugin or how to proceed
> if my changes are not so good for you.

Currently, you can use a tag of <nowiki> within an HTML block to
completely disable parsing of TW-formatted content.  However, this is
accomplished in a very simple way: if the plugin detects the text
"<nowiki>" *anywhere* in the HTML content, it just bypasses the extra
'wikify' handling, so that only the browser's native HTML processing
is applied.

What you need for your use-case a bit more 'finely-grained' control,
to selectively enable/disable "wikification" within portions of the
HTML-syntax block.

Rather than introduce a new special-meaning CSS classname, I'm
inclined to extend the current usage of "<nowiki>", so that it can be
paired with </nowiki>.  Thus, you would be able to write something
like:

<html>
<nowiki>this content is just HTML syntax</nowiki>
this line has a TiddlerName that is wikified (and thus, linked)
<nowiki>and this is more HTML syntax</nowiki>
</html>

of course, this is somewhat awkward syntax, so I'm also considering
support for "<wiki>...</wiki>" syntax as well, which would let you
write the above more simply, as:

<html>
<nowiki>
this content is just HTML syntax
this has a <wiki>TiddlerName</wiki> that is wikified (and thus,
linked)
and this is more HTML syntax
</nowiki>
</html>

With regard to publishing your modified plugin: you are free to do
so... however, you should read these two tiddlers first:
   http://www.tiddlytools.com/#LegalStatements
   http://www.tiddlytools.com/faq.html#FAQ_ModifyingTiddlyToolsPlugins

Basically, you need to *rename* the plugin tiddler so it is "clearly
differentiated" from the official TiddlyTools-distributed version.
You should also comment each line of code (or or at least each section
of code) that you have added and/or modified, so that the differences
between your altered version and the original TiddlyTools version can
be quickly identified.

In any case, if you find that my alternative suggested usage as
described above would be acceptable for your purposes, and you can
wait a bit for me to write, test and publish some new code, then I
would be glad to add that functionality to the standard
HTMLFormattingPlugin.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
   http://www.TiddlyTools.com/#Donations

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
   http://www.TiddlyTools.com/#Contact

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
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.

Reply via email to