Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-01-25 20:55:25

nemoorange
Plugin Author
From: Washington DC
Registered: 2006-11-29
Posts: 90
Website

[textile] HTML in Textile

I’d like to mix up some HTML and Textile. Seems that this should work, but I keep getting my HTML tags wrap in <p> tags

Entered in article body. For the sake of the example I’ve used code blocks and had remove the empty lines:

<div class="classname">
h3. Title
paragraph
</div>
lorem ipsum

HTML result:

<p><div class="classname"></p>
<h3>Title</h3>
<p>paragraph</p>
<p></div></p>
<p>lorem ipsum</p>

Txp admin themes | dropshado.ws – a blog for design noobs like me

Offline

#2 2009-01-25 21:02:21

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,599
Website

Re: [textile] HTML in Textile

nemoorange wrote:

I’d like to mix up some HTML and Textile. Seems that this should work, but I keep getting my HTML tags wrap in <p> tags

Simply add a space in front of the lines with html.


 <div class="classname">
h3. Title
paragraph
 </div>
lorem ipsum

TXP Builders – finely-crafted code, design and txp

Offline

#3 2009-01-26 02:23:05

nemoorange
Plugin Author
From: Washington DC
Registered: 2006-11-29
Posts: 90
Website

Re: [textile] HTML in Textile

Gah! I hate it when the answer is that simple! Thank you jakob!


Txp admin themes | dropshado.ws – a blog for design noobs like me

Offline

#4 2009-01-26 03:15:02

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [textile] HTML in Textile

You can also use notextile.

notextile. <div class="classname">
h3. Title
paragraph
notextile. </div>
lorem ipsum

That’s my personal preference, as a space could easily be deleted by mistake.

Offline

Board footer

Powered by FluxBB