unable to get clean br and lists
P Kishor
punk.kish at gmail.com
Mon Mar 15 13:26:03 EDT 2010
On Mon, Mar 15, 2010 at 2:54 AM, Wander Nauta <info at wandernauta.nl> wrote:
> Care to share?
> W.
It was really user-error. I have customized Markdown fairly
extensively to suit my needs, so I was worried I stomped on some toes,
and wouldn't be able to figure out which ones. Fortunately, that
wasn't the source of the error. What was happening was that I was
loading a large chunk of marked down text line by line into a scalar,
but running markdown() on each line as it was added to the scalar.
Hence the spurious p and ul tags. Changing the behavior to run
markdown() on logical chunks of text solved the problem.
>
> On Mon, Mar 15, 2010 at 07:17, P Kishor <punk.kish at gmail.com> wrote:
>>
>> figured it out.
>>
>> On Sun, Mar 14, 2010 at 11:17 PM, P Kishor <punk.kish at gmail.com> wrote:
>> > I am experiencing a strange problem with Markdown. Simple lists such as
>> >
>> > * one
>> > * two
>> >
>> > are being rendered as
>> >
>> > <ul>
>> > <li>one</li>
>> > </ul>
>> > <ul>
>> > <li>two</li>
>> > </ul>
>> >
>> > instead of
>> >
>> > <ul>
>> > <li>one</li>
>> > <li>two</li>
>> > </ul>
>> >
>> > and, consecutive lines that end with two spaces (ending this line with
>> > periods to denote spaces)..
>> > and continue on should be rendered with <br>, but are getting wrapped in
>> > p as
>> >
>> > <p>and, consecutive lines that end with two spaces (ending this line
>> > with periods to denote spaces) </p>
>> > <p>and continue on should be rendered with <br>, but are getting
>> > wrapped in p as</p>
>> >
>> > Am I missing something very obvious?
>> >
>> >
>> > --
>> > Puneet Kishor
>> >
--
Puneet Kishor http://www.punkish.org
Carbon Model http://carbonmodel.org
Charter Member, Open Source Geospatial Foundation http://www.osgeo.org
Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor
Nelson Institute, UW-Madison http://www.nelson.wisc.edu
-----------------------------------------------------------------------
Assertions are politics; backing up assertions with evidence is science
=======================================================================
More information about the Markdown-Discuss
mailing list