Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Markdown as an option for 4.5? Make it pluggable perhaps!
What do the two Markdown links under “Textfilter help” go to? (I haven’t installed the plugin.)
And with the inclusion of filters, will the existing Textile help in the top-left column be reduced? I’d like to think it will be simplified. Maybe something nice and clean like this:
Textfilter help
And the Textile link will go to Steve’s new Textile site? Please.
(NB : I haven’t yet installed 4.5.1, so don’t know what’s there.)
Offline
#17 2012-09-19 20:27:15
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Markdown as an option for 4.5? Make it pluggable perhaps!
I love Textile, but it’s a very nice addition for end users to be able to choose their own preferred markup language.
Destry wrote:
What do the two Markdown links under “Textfilter help” go to?
Markdown: Basics
Markdown: Syntax
Wouldn’t it be better if these links opened in new tabs, like the ‘More’ link for Textile? (Which BTW still goes – via textpattern.com/textile-sandbox – to thresholdstate…)
Maybe something nice and clean like this:
Textfilter help
I quite like the Textile help as it is now, it would be nice if there could be the same basic instructions for Markdown. Don’t know if this (see screenshot below) will be a very likely setup, but for this situation Destry’s suggestion might be a better option ;)

Offline
Re: Markdown as an option for 4.5? Make it pluggable perhaps!
wet wrote:
A sample Markdown plugin is available at my Github repo: wet_textfilter_markdown.
I just stumbled upon your plugin while doing a random search on github. I’ve been looking for a solution for a long time to use Markdown in TXP. Question, is the plugin you have using barebones Markdown or Markdown Extra?
Great job!
Offline
Re: Markdown as an option for 4.5? Make it pluggable perhaps!
It currently uses plain Markdown.
Offline
Re: Markdown as an option for 4.5? Make it pluggable perhaps!
I might fork this and try and add Extra to it if you don’t mind.
Offline
Re: Markdown as an option for 4.5? Make it pluggable perhaps!
Of course I don’t mind but rather jump for joy ;) Pull requests are welcome!
Offline
Re: Markdown as an option for 4.5? Make it pluggable perhaps!
You have a pull request for Markdown Extra :-)
By the way – I am not sure what the benefit would be from having two Markdown plugins, as Markdown Extra falls back to Markdown if needed. Having two flavors of Markdown could be irritating, so perhaps Extra should be the way to go?
Oh, and for the record (if someone less tech-savvy reads this), Markdown only works with Textpattern 4.6 (development branch). Just wasted minutes of my life avoiding documentation and trying the plugin in 4.5.4…
Last edited by stephan (2013-02-02 13:27:25)
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
Re: Markdown as an option for 4.5? Make it pluggable perhaps!
Well you beat me to it! Extra has some nice block formatting that is missing from vanilla Markdown.
Any idea when 4.6 will drop to the masses?
Offline
Offline
Re: Markdown as an option for 4.5? Make it pluggable perhaps!
wet,
I’m getting this error when I install the plugin (txt version):
Fatal error: Class 'Textpattern_Textfilter_Base' not found in /users/home/.../domains/.../web/public/textpattern/lib/txplib_misc.php(812) : eval()'d code on line 3
(Don’t know how to wrap code in here.)
Should I be installing something else?
Offline
Re: Markdown as an option for 4.5? Make it pluggable perhaps!
Destry wrote #282390:
Fatal error: Class ‘Textpattern_Textfilter_Base’ not found
Without looking at the code, starting with the most likely cause for failure… you do have SVN Textpattern 4.6 installed, right?
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: Markdown as an option for 4.5? Make it pluggable perhaps!
Heh. No. (Brain full of Txp tumbleweeds.)
Offline
Re: Markdown as an option for 4.5? Make it pluggable perhaps!
Getting that error again, but this time I do have 4.6dev installed locally. Need to update my dev version?
Offline
Re: Markdown as an option for 4.5? Make it pluggable perhaps!
Destry, If you have a recent 4.6 installed, it might have to do with this txp update to the way class namespacing is done. I had this problem yesterday with rah_beacon and had to make a small modification to the code. It looks like wet has already made the corresponding change for his markdown filter.
If you’ve just installed his newest filter from github, then you might need to update your dev version. Both changes happened in the last 10 days or so.
TXP Builders – finely-crafted code, design and txp
Offline
Re: Markdown as an option for 4.5? Make it pluggable perhaps!
Destry wrote #296259:
Getting that error again, but this time I do have 4.6dev installed locally.
Yep, what jakob said. Plugins will need a modification unfortunately. One of the pitfalls of working to development code…
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