Hi Stephan

I think there's an easier approach to this particular problem: a new parse
rule could match /#\n/ and emit a <br> element. In earlier discussions the
backslash has been floated for this purpose, which I think I might prefer.

Best wishes

Jeremy.



On Mon, Dec 23, 2013 at 2:28 PM, Stephan Hradek <[email protected]>wrote:

> Hi Jeremy!
>
> While I was creating a new documentation today for work, I again came to
> the point, where I really wanted a linebreak in a list. Using <br> is okay
> for me, but still there is the problem that those lines will get pretty
> long. I'm not allowed to enter a real linebreak as the list will then be
> closed.
>
> So I came back to this idea and I'm wondering whether or not the
> following, very generic approach could be implemented. I'm more than
> willing zo do that, but I think I need to be shown to my starting place.
>
> So this is the idea:
>
> Similar to the \define pragma, I'd like to have a tiddler specific pragma
> defining some "pre-processor" search and replace terms. As an example:
>
> \replace /#\n/<br>/
>
> This should replace any "#" followed by an line-end with a <br>. So there
> wouldn't be any additional rendering included. It would be a pure
> pre-processing. As a result, this:
>
> # line item 1
> # line item 2#
> continuation of line item 2
> # line item 3
>
> Would be seen by the TW render process as
>
> # line item 1
> # line item 2<br>continuation of line item 2
> # line item 3
>
> and rendered as such.
>
> Maybe it's a too stupid or too complex idea?
>
>


-- 
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/groups/opt_out.

Reply via email to