Go To Content
codylindley.com

codylindley.com

Adding The Div Block Modifier to Textile

I recently updated my Textpattern, Textile file to 4.0.0. In doing so I forgot that sometime back I added the functionality to Textile to use a div element as a block modifier. For some reason its not possible to do this with the original Textile code:

div(bob). image or text

So, I quickly had to remedy this with a fix. If your interested here is the fix.

1. Open your classTextile.php file.

2. Search for the follow line (Around line 427):

$find = array('bq', 'h[1-6]', 'fnd+', 'p');

3. Replace the line with this:

$find = array('bq', 'h[1-6]', 'fnd+', 'p', 'div');

4. Save it and upload it.