From: Waylan L. <wa...@gm...> - 2011-06-21 14:32:19
|
Brian, We've received at least one request [1] for your Nl2Br extension [2] to be distributed with Python-Markdown. Unlike some requests, I think this one could be useful to a larger number of people. If you're not opposed, I'll include a copy in our extensions dir with the credit to you. Thanks, Waylan [1]: https://github.com/waylan/Python-Markdown/issues/13 [2]: http://deathofagremmie.com/2011/05/09/a-newline-to-break-python-markdown-extension/ On Thu, Mar 3, 2011 at 10:43 AM, Brian Neal <bg...@gm...> wrote: > On Thu, Mar 3, 2011 at 9:23 AM, Waylan Limberg <wa...@gm...> wrote: >> On Wed, Mar 2, 2011 at 9:52 PM, Brian Neal <bg...@gm...> wrote: >>> Hi - >>> >>> After some head scratching I came up with something super simple (as >>> Waylan said it might be) and it actually seems to work, so far. Before >>> I publish it somewhere for good I'm wondering if you guys would give >>> it a quick peer review. Does this look reasonable? >>> >>> http://dpaste.com/hold/467237/ >>> >> >> That looks good to me. However, what happens when Markdown line break >> syntax (two spaces followed by a newline) is encountered? I'm >> wondering if this will add a second linebreak. If so, you should >> probably remove that pattern. >> > > I've tried this too and it does the right thing. No extra break is inserted. > > Thanks, > BN > -- ---- \X/ /-\ `/ |_ /-\ |\| Waylan Limberg |