2012-06-04 20:13:03

stephan
Plugin Author
êta
Real name: Stephan Hochhaus
From: Bochum, Germany
Website

Markdown as an option for 4.5? Make it pluggable perhaps!

As much as I love Textile (it is, afterall, what introduced me to the world outside of \LaTeX text markup) I would love the option to chose something other than textile as my text processing engine. Namely MultiMarkdown. It works in so many applications now and it gets more and more confusing to switch between Textile an Markdown.

What about adding a simple functionality to extend the drop down list in the Admin menu that allows me to select Textile or line breaks to be extensible by a plugin or directly shipping Markdown with Textpattern? I would even volunteer to write the Plugin to do so, if only someone could tell me whether it is possible at all or not :-)

Offline

 

2012-06-05 07:22:07

wet
Developer
omega
Real name: Robert
From: Lenzing, Austria
Known languages: de-AT, en, PL/M-80
Website

Re: Markdown as an option for 4.5? Make it pluggable perhaps!

As this idea keeps popping up I’ve filed an issue to keep it in sight.

I’d rather not bundle any additional text filters with the core but rather provide a versatile interface for text filter plugins and, if energy permits, a user interface to allow publishers to define filter chains.

Offline

 

2012-06-05 08:07:15

Gocom
Developer
omega
Real name: Jukka Svahn
Website

Re: Markdown as an option for 4.5? Make it pluggable perhaps!

I personally don’t see need for a user interface or chaining options. If and when the filters are implemented by a plugin load order can be used, and things as purifying (or any other post-processing) could be done by a persistent hook, ran no matter what processing option is selected by the end user.

As the whole deal goes, as bare minimum probably needs:

  • some changes to how the article markup option is stored. Instead of the integer use_textile, some unique identifier is probably needed. A column that stores a prefixed unique identifier assigned for a text filtering stack/callback.
  • registering method that adds an extra markup options to the Write pane, and registers to a callback event on the current Textiling location. One that passes content by reference.

Persistent processing/filtering could hook to the callback event directly without adding options to the markup option, while registered markup processors appear in it.

In my opinion that should be enough to allow plugins to change the processing method from Textile to something else, or add additional sets. Adding some sort of interface is in my opinion way too much bloat.


Rah-plugins | What? I’m a little confused… again :-) <txp:is_god />

Offline

 

2012-06-06 07:37:43

Destry
Moderator
omega
From: Strasbourg, France
Known languages: en, fr
Website

Re: Markdown as an option for 4.5? Make it pluggable perhaps!

+1 for Markdown as a syntax option.

If an option to use Markdown is added, Txp will gain a certain sum of new users. Very happy to see this in discussion as a real potential. Exciting.

Offline

 

2012-06-06 09:53:30

colak
Admin
omega
Real name: Yiannis
From: Cyprus
Known languages: el, en
Website

Re: Markdown as an option for 4.5? Make it pluggable perhaps!

If other text processing engines are to be thought of, I think that a generic approach should be favorable so as to allow almost any kind of engine to be used. Having said this, I have no idea about how difficult (or possible), this would be.

Online

 

2012-06-06 10:07:28

net-carver
Admin
psi
Real name: Steve
From: UK
Known languages: English
Website

Re: Markdown as an option for 4.5? Make it pluggable perhaps!

IIRC, Markdown already comes with a textile compatibility method. You’d need to check with the MD documentation for exactly how to do this, but I think it is as simple as renaming the MD file and replacing the textile file with it.


Steve
Textile | My plugins on GitHub | @netcarver

Offline

 

2012-07-02 14:48:48

stephan
Plugin Author
êta
Real name: Stephan Hochhaus
From: Bochum, Germany
Website

Re: Markdown as an option for 4.5? Make it pluggable perhaps!

I saw this issue is marked as “accepted” on googlecode. Does that mean it will be in 4.5 or do we have to wait for a 4.5+ release?

Offline

 

2012-07-02 14:59:21

Bloke
Developer
omega
Real name: Stef Dawson
From: Leeds, UK
Known languages: Engl(ish)
Website

Re: Markdown as an option for 4.5? Make it pluggable perhaps!

stephan wrote:

I saw this issue is marked as “accepted” on googlecode. Does that mean it will be in 4.5 or do we have to wait for a 4.5+ release?

It’s accepted insofar as it’ll appear in core at some point. But 4.5 is now in feature lockdown, bug hunt and issue squash mode, so it won’t be this time round.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern.

Txp Builders – finely-crafted code, design and Txp

Offline

 

2012-07-02 15:21:41

stephan
Plugin Author
êta
Real name: Stephan Hochhaus
From: Bochum, Germany
Website

Re: Markdown as an option for 4.5? Make it pluggable perhaps!

OK, great. That is what I thought – thanks!

Offline

 

2012-07-30 12:03:33

wet
Developer
omega
Real name: Robert
From: Lenzing, Austria
Known languages: de-AT, en, PL/M-80
Website

Re: Markdown as an option for 4.5? Make it pluggable perhaps!

As far as I can remember, past discussion have always revolved around alternate markup filters for the “Write” tab.

Has anyone ever encountered a real user’s requirement to switch away from Textile for the public side, i.e. comment formatting?

Offline

 

Powered by FluxBB