<div dir="ltr"><br><br><div class="gmail_quote">On Thu, Jul 17, 2008 at 4:11 PM, John Gabriele <<a href="mailto:jmg3000@gmail.com">jmg3000@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Thu, Jul 17, 2008 at 9:49 AM, Jurgens du Toit<br>
<<a href="mailto:jurgens.dutoit@gmail.com">jurgens.dutoit@gmail.com</a>> wrote:<br>
> Ok.<br>
><br>
> Is it possible to modify the code to do that?<br>
<br>
</div>Very probably, but you may not want to. My impression is that there's<br>
a lot of tradeoffs in Markdown between it trying to do what you mean<br>
and it requiring non-ambiguous markup. For example, if you've got a<br>
paragraph with a plus sign in it, and you have your editor re-wrap it,<br>
you might end up with a line starting with that plus sign. You<br>
wouldn't want Markdown to think it's a one-item list.</blockquote><div><br>I understand it to be tricky. I'll play around, and, if I don't like it, adapt and learn! <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
It's also not terribly easy to read without that leading newline.<br>
<div class="Ih2E3d"><br>
> Can you point me in the right<br>
> direction?<br>
<br>
</div>You might look in the `_DoLists` function.</blockquote><div>Schweet, will do. <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<div class="Ih2E3d"><br>
> It's something I'd realy like to be able to do, even if it is a configurable<br>
> options.<br>
><br>
> Another thing, is it possible to convert newlines to <br/> tags? I tried<br>
> nl2br before and after passing the string to markdown, but either way<br>
> there's to many br tags then.<br>
<br>
</div>You can end a line with 2 or more spaces and it will create a <br/> for you.</blockquote><div><br>Didn't know that one, but, once again, not exactly what I want. Darn 'it, looks like I'll have to adapt...<br>
<br>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?<br>
<br>J<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<font color="#888888"><br>
---John<br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<br>
Markdown-Discuss mailing list<br>
<a href="mailto:Markdown-Discuss@six.pairlist.net">Markdown-Discuss@six.pairlist.net</a><br>
<a href="http://six.pairlist.net/mailman/listinfo/markdown-discuss" target="_blank">http://six.pairlist.net/mailman/listinfo/markdown-discuss</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Jurgens du Toit<br>Cell: +27 83 511 7932<br>Fax: +27 86 503 2637<br>Website: <a href="http://www.jrgns.net">www.jrgns.net</a><br><br>If people never did silly things, nothing intelligent would ever get done.<br>
- Ludwig Wittgenstein
</div>