closing paragraphs </p> (Was Re: [Pmwiki-users] Another idea bef..)

Christian Ridderström chr
Fri Jan 16 05:52:58 CST 2004


On Wed, 14 Jan 2004, Patrick R. Michaud wrote:

> Thus a 
> paragraph cannot contain a list, a table, a blockquote, or even another
> paragraph.  Thus this is valid in HTML
> 
>     <li><p>Paragraph 1</p><p>Paragraph 2</p></li>
> 
> but this is not
> 
>     <p>Paragraph 1<ol><li>List item 1</li><li>List item 2</li></ol></p>
> 
Oh.

> > Oh, and at the moment, is it possible to a create new paragraph while 
> > inside for instance a list item?
> 
> Not presently, although I'd love to have a markup that allows that.
> But this brings up other points about the <p> tags in general; given
> the following PmWiki markup (assuming that '\\\' represents "new
> paragraph")
> 
>   * list 1\\\
>     paragraph
>   * list 2

You learn something ever day --- the above made me realize that the extra 
spaces in front of 'paragraph' doesn't matter, so you can add them to make 
the wiki markup look more like the resulting output :-)

> 
> which of the following should be produced?
> 
>   <ul>                               <ul>
>   <li><p>list 1</p>                  <li>list 1
>     <p>paragraph</p></li>              <p>paragraph</p></li>
>   <li><p>list 2</p></li>             <li>list 2</li>
>   </ul>                              </ul>
> 
> I.e., should the text of every list item or definition item automatically
> be enclosed in <p>...</p>?  Or, put another way, should all text only
> occur inside of paragraph tags?  If yes, then we can get some really 
> annoying browser side effects in tables and other block constructs which
> don't expect paragraphs.  If no, then there's not much point in having 
> properly containerized <p>'s or CSS entries for the <p> tag, because some 
> text elements would be affected and others would not.  (You start to see why
> I dislike the <p> tag so much.  :-)

Yes, I'm starting to see why...

> > Speaking of which, how is '\' at the end of a line handled? Is the '\' 
> > stripped and the next line simply appended to the current variable 
> > representing the current line?
> 
> The newline is replaced with a space and the next line appended to the
> current one.

Thanks.

/Christian

-- 
Dr. Christian Ridderstr?m, +46-8-768 39 44       http://www.md.kth.se/~chr




More information about the pmwiki-users mailing list