Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#2 2005-01-09 10:45:42

osei
Plugin Author
From: Stockholm, Sweden
Registered: 2004-07-01
Posts: 178
Website

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

#3 2006-06-22 05:21:45

tkn
Member
From: New York
Registered: 2004-06-29
Posts: 39
Website

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

Board footer

Powered by FluxBB