Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2012-01-10 17:58:55
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
[textile] Textile v2.3 now available.
Hello all,
I’ve just pushed v2.3 up to the github master repository in case anyone wants it. This is a recommended update and Robert already has the changes in the Textpattern codebase.
Changes from v2.2 to v2.3 by contributor.
Jeff Soo…
- Updated docs re colgroup/col declarations.
Netcarver…
- Fixed comments. — thanks Typeshige.
- Prevent PHP parser detecting a ?> script ending if the regex is commented out.
- Allow spans within existing non-English quotation marks.
- Add single chevrons and more single + double quotes.
- No block attributes in restricted mode.
- Improve block attribute sanitisation — re-allow language attributes in restricted mode.
- Update htmlspecialchars.
- Remove deprecated split().
- Compare with ‘’ not empty() in case preg_ function fails.
- Address center aligned cell content being treated as a table caption. Issue 6. Reported by PS.
- Caption lines must be first line of table defs starting with a pipe ‘|’.
- Bugfix: Note-style links can now use index 0. Thanks jackysee. Closes issue 5.
- Allow recovery from colgroups missing closing pipe.
- Allow pipe closure of captions for consistency.
- Add spanned quotes test cases with literal non-English quotation marks.
- Added README.
- Added a contact section to README.textile.
- Added translations section to README.textile.
- Fix issue 19. The unicode regex was allowing the class to be captured as part of the note label.
- Improve lang, style, class & id handling.
- Don’t allow potential DoS in cleanba().
Robert Wetzlmayr…
- Encode quotes in restricted mode.
- Add rel attributes to linked images.
Upgrading An Installation
Simply overwrite your site’s existing classTextile.php file with the one pulled from github.
Batch Upgrade A Site’s Articles.
If you used an older version of textile in one of your sites, and you’d like to re-encode all of your articles with the latest version of textile you now have two options available. Gocom’s offering is here, and there is a compiled plugin here. Either one should work for you. Please note that batch upgrade of a site’s articles is not required in order to use v2.3 going forward — you only need to do it if you used some textile features in your articles that didn’t work properly in older versions (such as lists.)
My thanks to all who contributed to textile v2.3!
Edit. updated outdated links -Gocom
Last edited by Gocom (2014-04-16 08:59:54)
— Steve
Offline
Re: [textile] Textile v2.3 now available.
Awesome work. Many thanks to everyone involved.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
Re: [textile] Textile v2.3 now available.
This is wonderful. Thanks!
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: [textile] Textile v2.3 now available.
Nice work! Many thanks.
Digital nomad, sailing the world on a sailboat: 32fthome.com
Offline
Re: [textile] Textile v2.3 now available.
Great work Steve, Jeff and Robert
Is it true that we have definition lists now ?
Offline
Re: [textile] Textile v2.3 now available.
pieman wrote:
Is it true that we have definition lists now ?
Definitions this one has indeed.
; Sweetroll
: Running gag in Bethesda's video games. Some might even know it as eatable item.
Offline
Re: [textile] Textile v2.3 now available.
Will http://textile.sitemonks.com/ be updated to 2.3?
Or will there be another page comparing output of 2.2 vs. 2.3?
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
#8 2012-01-12 19:59:22
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: [textile] Textile v2.3 now available.
merz1 wrote:
Will http://textile.sitemonks.com/ be updated to 2.3?
Or will there be another page comparing output of 2.2 vs. 2.3?
No, the sitemonks sandpit site isn’t updated yet, but sorting this out is on my to-do list.
— Steve
Offline
#9 2012-01-13 10:40:59
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: [textile] Textile v2.3 now available.
I just upgrade a site from textile 2.0 to the last release.
To apply the new lib to the existing articles, I must open then save each article.
Have you a way to apply the new textile to all the articles in one time ?
Offline
#10 2012-01-13 11:17:48
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: [textile] Textile v2.3 now available.
jpdupont wrote:
I just upgrade a site from textile 2.0 to the last release.
To apply the new lib to the existing articles, I must open then save each article.
Have you a way to apply the new textile to all the articles in one time ?
Sorry, no, I don’t have a batch update tool — however, you should be fine with just updating the library and not your articles (unless you need some of the newer features in those articles.) Most of the important fixes in this release are to do with textile’s use in restricted mode and that really only impacts the commenting system in Textpattern.
— Steve
Offline
Re: [textile] Textile v2.3 now available.
Any plans for an updated Textpattern 4 on the horizon that includes newer textile?
Yoko for Textpattern – A free blog theme • Minimum Theme – If all you want to do is write.
Note: I am currently not actively using Textpattern, so I am not in the forums very often
Offline
#12 2012-01-13 14:51:35
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: [textile] Textile v2.3 now available.
Steve, the problem is not to upgrade from 2.2 to 2.3, but from 2.0 to 2.2 or 2.3 !
I have many articles ( > 200) with bugs in lists (ul / h3 / ul / h3 …) in previous textile version. Alls bugs corrected now in 2.2/2.3, but we need to rebuild all the “body html” field of the database …
Offline
#13 2012-01-13 20:29:43
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: [textile] Textile v2.3 now available.
stephan wrote:
Any plans for an updated Textpattern 4 on the horizon that includes newer textile?
You’ll need to wait from a word from the development team about that — I don’t know.
jpdupont wrote:
Steve, the problem is not to upgrade from 2.2 to 2.3, but from 2.0 to 2.2 or 2.3 !
I have many articles ( > 200) with bugs in lists (ul / h3 / ul / h3 …) in previous textile version. Alls bugs corrected now in 2.2/2.3, but we need to rebuild all the “body html” field of the database…
Ah, I see. Ok, having a batch convertor to do that would be pretty useful. I’ll see if I can get a plugin together for you and others in the same situation. Watch this space.
— Steve
Offline
Re: [textile] Textile v2.3 now available.
net-carver wrote:
Ah, I see. Ok, having a batch convertor to do that would be pretty useful. I’ll see if I can get a plugin together for you and others in the same situation. Watch this space.
Batch Textiler, you say? Five minutes later.
/**
* Batch parse articles' Textile markup
* @param int $offset
* @param int $limit
* @return bool Aborts on error and returns FALSE.
* @example abc_batch_textile();
*/
function abc_batch_textile($offset=0, $limit=NULL) {
$rs = safe_rows(
'ID, Body, Excerpt, textile_body, textile_excerpt',
'textpattern',
"(textile_body=1 OR textile_excerpt=1) AND (Body != '' OR Excerpt != '')" .
' ORDER BY ID asc' . ($offset && $limit ? ' LIMIT ' . $offset. ', ' . $limit : '')
);
include_once txpath.'/lib/classTextile.php';
$textile = new Textile();
foreach($rs as $a) {
$sql = array();
if($a['Body'] && $a['textile_body'] == 1)
$sql[] = "Body_html='".
doSlash($textile->TextileThis($a['Body'])).
"'";
if($a['Excerpt'] && $a['textile_excerpt'] == 1)
$sql[] = "Excerpt_html='".
doSlash($textile->TextileThis($a['Excerpt'])).
"'";
if(!$sql)
continue;
$r = safe_update(
'textpattern',
implode(',', $sql),
'ID='.$a['ID']
);
if($r === false)
return false;
}
return true;
}
Usage;
- Updating all articles:
abc_batch_textile(); - Or in smaller batches when there is too many articles to handle with one go:
abc_batch_textile(100, 100);(offset, limit).
Can be wrapped in a plugin, or ran with rah_test_php, php tags or ied_plugin_composer.
Not that well tested, and anyone wanting try it out should take a backup before using it. Serious, backup.
Last edited by Gocom (2012-01-13 22:10:27)
Offline
#15 2012-01-13 22:26:51
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: [textile] Textile v2.3 now available.
Hi Gocom,
thanks for that. Takes me a little longer — getting old.
See this thread for a version compatible with Textpattern v4.7+
# Name : sed_textile_upgrade
# Version : 0.1.3
# Description : Facilitates textile upgrades to your article body and excerpt texts.
# Author : Netcarver
# URL : https://github.com/netcarver/sed_textile_upgrade
# Type : Admin only
# ......................................................................
# Revision : 7fd82f659c2fabe2ae8c46f3efa68296b585dea3
# Branch : master
# ......................................................................
# Compressed : Yes
# ......................................................................
# This is a plugin for Textpattern - http://textpattern.com/
# To install: textpattern > admin > plugins
# Paste the following text into the 'Install plugin' box:
# ......................................................................
H4sIAAAAAAAAA81Za1PbSBb9bP+KHkHGJuU3gYBss0sIybBhyBRx7ezW1JRpSy2rF1mtkVo4
bIr/vud2S7ZMTMjsflkqIZa6+z7OfZ12uNsfuF8y95XrxHwhnGHm9o9dJxP+VIvPWkZimifz
lPtm6bXr3Ik0kyqmpwPX6XX6nX36fOg6PNehSukBAq6E9niKz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+t0bVs8bv633IPKF/+51y
j5CeUjkTeUBJOqyDXvYJ5pGeQkD7pLBkgpHXLKW/sVLxQx53mNNwhoX8bnetwUSlVPHnNJij
RsVjDQ/1b3tcxIyc/srlIomsSX/OoPO12LVB9ZV8SJOLJMJYazK6RRDTx9sifI8L014IsbOS
osWRFprCW+z7Uui9eNv4/cHZLF/85DH2NjeUECGuPTARgRvYaNMVgzlXqhyy64sz5XoBVGa/
Mwjom/WOBZkkVQVZOWfFlyWaVboWitycwZHKiccHqt22OEETw7Rw9s5+VdGCHfbLNF9guuae
xk02IqptPJ/TfLWtx5ep8HRJkMr/LjKFQZSL2g4EG6B9EQkL9OdkWswcIHxDM/JmvO3S2HC+
at0/lM/GN/PtEyadmk1F7E+hmsfNPRsE6o8ibTYulVd8od7ohHmnGubuigH8xYzDMdnd2Dh9
puJYePa8F6lMfLVM3KV9KeI57mGsZ5YfMIMd+/9cC//AfBq4zoHf7w36/deif8xfDQ5nrw/9
w+Bw3zs6Ft7RK459D/8BedIji1ocAAA=
This one makes a backup of your textpattern table, adds installation warnings and some step-by-step help.
Hope either of these can help those in need of a solution. Any problems, let me know.
— Steve
Offline