Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-02-26 02:40:57

mericson
Member
Registered: 2004-05-24
Posts: 137
Website

[textile] Textile problem colon and lists

My wife is using textile and often uses the following pattern

Example:
* item 1
* item 2

Unfortunately this produces invalid XHTML

<p>Example:
<ul>item 1</ul>
<ul>item 2</ul>
</p>

It instead should be

<p>Example:</p>
<ul>item 1</ul>
<ul>item 2</ul>

Update I tried this on textism.org and it produces the proper XHTML, however in textpattern 4.2.0 it produces the bad results.

Last edited by mericson (2010-02-26 02:45:16)

Offline

#2 2010-02-26 04:30:17

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: [textile] Textile problem colon and lists

Remember to place an empty line between the list and paragraph. Otherwise the non-block list element is placed inside the open block element (which in this case the paragraph).

Paragraph.

* List item
* List item

mericson wrote:

I tried this on textism.org and it produces the proper XHTML, however in textpattern 4.2.0 it produces the bad results.

Textism uses over five years old Textile version. Because it is so old, it doesn’t support long blocks (p.., bc.. etc), nor blocks inside blocks. That is why it renders the example correctly.

Offline

Board footer

Powered by FluxBB