On Sep 19, 5:12 pm, Yakov <[email protected]> wrote: > As for the linebreak story.. > > There were two reasons in asking about another <br /> handler: first, > it should clarify the example with the justDiv wrapper and second, > it's a simple formatter that can be written as an exercise and which > can be of some use. The problem is, it isn't simple.
* list @@text@@<br /> some more text\n \n for the formatter it looks like: * list @@text@@ <br\n /> some more text\n \n Since the list (termRegExp: /(\n)/mg,) is sensitive for \n it will stop at: <br and closes the list. It will handle "list @@text@@" to the formatter again, and the formatter will deal with @@text@@ and highlight it. In any case you have to deal with a new lineBreak formatter and a new "listLineStart" formatter, that are different to \n or <br>. As you said, it's possible. But imo it will create several side effects, that will break things :) My suggestion is easier, to implement, with (but less) side effects. let's say your new list formatter deals with \n\n as termRegExp. It will handle over the following text to the default formatters: list @@text@@ <br\n /> some more text Now the default formatters have to deal with this and <br\n and /> will be rendered as normal text. Since formatters don't know them. (3 things to take care of) ========= The rest of your suggestions will create a list syntax, that is totally incompatible with the existing TW syntax, which I personally would want to avoid, or give it a different name, and fix the rest of the inconsistences too. The only problem is: It's a hell lot of work and knowledge, to create that much power :) -m -- 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.
