On Thu, Jul 17, 2008 at 4:11 PM, John Gabriele <[EMAIL PROTECTED]> wrote:
> On Thu, Jul 17, 2008 at 9:49 AM, Jurgens du Toit > <[EMAIL PROTECTED]> wrote: > > Ok. > > > > Is it possible to modify the code to do that? > > Very probably, but you may not want to. My impression is that there's > a lot of tradeoffs in Markdown between it trying to do what you mean > and it requiring non-ambiguous markup. For example, if you've got a > paragraph with a plus sign in it, and you have your editor re-wrap it, > you might end up with a line starting with that plus sign. You > wouldn't want Markdown to think it's a one-item list. I understand it to be tricky. I'll play around, and, if I don't like it, adapt and learn! > > > It's also not terribly easy to read without that leading newline. > > > Can you point me in the right > > direction? > > You might look in the `_DoLists` function. Schweet, will do. > > > > It's something I'd realy like to be able to do, even if it is a > configurable > > options. > > > > Another thing, is it possible to convert newlines to <br/> tags? I tried > > nl2br before and after passing the string to markdown, but either way > > there's to many br tags then. > > You can end a line with 2 or more spaces and it will create a <br/> for > you. Didn't know that one, but, once again, not exactly what I want. Darn 'it, looks like I'll have to adapt... Any special reason why single newlines don't get converted to <br/>? I'm thinking that if it happens right at the end of the manipulations, and newlines between closing and opening block tags (such as <\p>\n<p>) get ignored, it will work? Or, actually more simple, only newlines between certain tags, such as p and div? J > > > ---John > _______________________________________________ > Markdown-Discuss mailing list > [email protected] > http://six.pairlist.net/mailman/listinfo/markdown-discuss > -- Jurgens du Toit Cell: +27 83 511 7932 Fax: +27 86 503 2637 Website: www.jrgns.net If people never did silly things, nothing intelligent would ever get done. - Ludwig Wittgenstein
_______________________________________________ Markdown-Discuss mailing list [email protected] http://six.pairlist.net/mailman/listinfo/markdown-discuss
