Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2004-06-12 12:08:26
- Michel Fortin
- New Member
- Registered: 2004-06-12
- Posts: 2
PHP Markdown's "Textile Compatibility Mode"
In case someone is interested, the latest version of PHP Markdown (1.0b6) includes a feature allowing it replace Textile easily almost anywhere, including in TextPattern. Here is how you install it:
1. Rename the “markdown.php” file to “classTextile.php”
2. Replace the file at “[your site root]/textpattern/lib/classTextile.php” with the new one
Note that this will completely replace Textile, so you can’t have both at the same time. Also the interface will still refer to it as Textile while it’s actually Markdown that will format the text.
http://www.michelf.com/projects/php-markdown/
This is the first beta of PHP Markdown with this feature. It may still have undiscovered bugs.
Offline
Re: PHP Markdown's "Textile Compatibility Mode"
Thanks works great, but to have it work so markdown dont enclose txp plugins with p tags there needs to be a few changes, and if anyone is interested have a look at this article.
Johan Nilsson
Offline
Re: PHP Markdown's "Textile Compatibility Mode"
Sorry to resurrect this thread, but frankly I have some articles in Textile format and want to switch over to Markdown. Is there a solution to this besides manually converting each article to HTML and then using Markdown for the rest?
Offline