Should SEB make use of Textile or Markdown in comments?

Posted by Les on Wednesday, September 22, 2004 at 09:01 AM. Read 2925 times. Tags:
{name} pic

Currently I’ve got SEB set up to allow visitors to use all HTML tags in the comments they leave, but I’m sure this is just asking for trouble. If I set things to only allow “safe HTML” then we lose some of the lesser-used tags such as ordered and unordered lists as all the HTML is translated into pMcode equivalents, which is similar to BBCode, but much more limited in the tags it supports. Currently adding additional tags would require modifying the script directly and I’d rather avoid that if I can for ease-of-upgrading sake.

There are two other options I haven’t explored before because I didn’t think folks are familiar enough with them to make using them worthwhile, but they’re becoming more common and so I thought I’d ask if you guys would like me to make use of on here. Both of these options basically allow you to use plain-text tags to replicate the vast majority of HTML entities such as bold, italics, underline, and more advanced features such as tables, headers, footnotes and so on. There’s two common versions of this out there the first being Textile from the fellow who created the TextPattern blogging package. Here’s an example of how you would use Textile: Surrounding a word with asterisks like *this* would boldface the text and underscores on either side like _this_ would italicize it. You can even get as fancy as specifying custom CSS style attributes to be applied to text with it.

The other commonly used filter is known as Markdown which has a somewhat similar syntax, but even simpler in some respects without losing flexibility in the process. I don’t expect that most users would make use of the vast majority of options these two filters would make possible, but it might be nice to have them available for those rare occasions when it would come in handy. I’ve noticed more blogs out there making use of these filters in their comments so perhaps some of you are already familiar with them. I figured there was no harm in asking if you guys wanted me to put one or the other in place here so speak up and let your voice be heard.

I’m Les Jenkins and I approve this message.

Comments:

Page 1 of 1 pages

James Great Britain (UK) Posted on 09/22/2004 at 10:26 AM

James pic

I like the idea of using textile, but then my blog uses it (for the main entries, not comments) so I’m more familiar with it than most. And even then, I need the manual occasionally to do fiddlier things.

So I suppose in practice I think the safest option is to stick to limited HTML support.

elwedriddsche United States Posted on 09/22/2004 at 10:48 AM

elwedriddsche pic

Not restricting HTML tags is asking for all kinds of trouble. It’s a bit of a bummer that EE doesn’t have a configurable filter for tags and parameters. For what it’s worth, I’d pick loss of functionality over customizing code - as you say, these things come back to haunt you come upgrade time.

The two things I’d be careful about is precedence of markup modules (the more isn’t the merrier) and the effect on existing posts. On the other hand, this kind of markup mostly affects the cut&paste artists.

 Signature 

Science is answers that must always be questioned.
Philosophy is questions that may never be answered.
Religion is answers that must never be questioned.
Politics is answers that lobbyists pay for.

Les United States Posted on 09/22/2004 at 11:46 AM

Les pic

James, so is that a vote for using Textile?

Elwed, I’m sure that EE will eventually allow for an easier method of customizing the tags. It’s one of those nice-to-have features that end up on the back burner in favor of other features/issues that carry a higher priority. The same is true of the smilies module which also requires editing the script to change (which is why I’ve not changed them to the ones I was using previously yet).

As for precedence, I don’t think EE would let me apply both options at the same time. It’s either one or the other so I’m looking for input on which, if either, folks would like to have available. Do you guys want me to put Textile in place or Markdown or just stick to the more limited pMcode?

 Signature 

All I know is the wine lasts longer when you don’t gotta share it with someone
All I know is my steak tastes better when I take my steak tastes better pill
-- I Feel Fantastic, Jonathan Coulton

James Great Britain (UK) Posted on 09/22/2004 at 12:15 PM

James pic

It wasn’t so much a vote as a vague rambling, sorry smile

To be more coherent: I think if you put the textile (or, I guess, markdown) stuff in place, I’d use it when commenting. You might be at risk of making the comments system look a bit scary to people who aren’t familiar with it, though. Still, I guess if I’m coming down on one side of the fence or the other, I’d say go with Textile.

James Great Britain (UK) Posted on 09/22/2004 at 12:16 PM

James pic

Urgh. Non-ASCII smileys. Make it stop!

elwedriddsche United States Posted on 09/22/2004 at 12:20 PM

elwedriddsche pic

Les, I see. Drupal e.g. allows multiple filters and arbitrary precendence. The obvious problem is that you might break previous posts when changing the order in which filters are applied. There are other packages that allow multiple filters, but I never looked hard enough to see how they handle precedence.

 Signature 

Science is answers that must always be questioned.
Philosophy is questions that may never be answered.
Religion is answers that must never be questioned.
Politics is answers that lobbyists pay for.

deadscot United States Posted on 09/22/2004 at 12:46 PM

deadscot pic

I think whichever is most convenient for you and keeping the blog up to date and running smoothly.  From what I’ve seen here, most everyone is fairly quick on adapting and helping each other out. If you included some sort of help button, similar to the one that was here a while back with BBcode instructions, I’m very confident everyone would make use of it to get up to speed.

You have the advantage of having a slightly older crowd around here and those that haven’t dabbled with mark-up languages probably have used operating systems (DOS, Linux) or WP’s using hot-keys and special characters.

Frac Canada Posted on 09/22/2004 at 12:50 PM

Frac pic

This is just commenting, after all. Bold, italic, underline, strikethrough, and links. What more is really required?

‘OL’ and ‘UL’ are nice, but hardly required to leave an effective comment.

Some sites may benefit from ‘CODE’, I suppose, but even that is pushing it.

If someone wants to leave a multi-media extravaganza as a comment, let them link to it.

Les United States Posted on 09/22/2004 at 01:01 PM

Les pic

Elwed, I’d noticed that about Drupal.

DS, I linked to the pMcode reference in the entry, but I’ve been meaning to either include a link to it on the comment form or redesign the form to display the codes alongside it.

 Signature 

All I know is the wine lasts longer when you don’t gotta share it with someone
All I know is my steak tastes better when I take my steak tastes better pill
-- I Feel Fantastic, Jonathan Coulton

etherian United States Posted on 09/22/2004 at 04:01 PM

etherian pic

uhmmmmm....... thank you?

Most of that truly was over my head, but I will give a serious opinion.  I just type my comments and then head on over to the next blog.  So for me, any bells and whistles generally get ignored.  KISS.  smile

John Hoke United States Posted on 09/22/2004 at 04:52 PM

John Hoke pic

Les,

I am a fan of Markdown personally, but I tend to type all my XHTML in the comments manually so I can have <blockquote> <ul> etc if I need em…

Which ever tickles your fancy works for me, but I am partial to Markdown, which one day I will get around to using at the Asylum

Hmmm… I may want to chat with you about migrating to EE someday as well wink

Brooks United States Posted on 09/22/2004 at 08:13 PM

Brooks pic

I don’t care what you use as long as there’s a link to a legend page. In my case I tend to agree with Frac, with the addition of adding an image.

 Signature 

Brooks Ayola
http://blog.ayola.com
http://prophotofporums.com

Les United States Posted on 09/22/2004 at 09:01 PM

Les pic

John, I usually do my HTML in comments by hand as well, but if I set it so it only allows “safe” HTML then we’d lose the tags dealing with things like ordered and unordered lists which I sometimes use, hence why it’s not currently enabled. grin

As for EE, I’d be happy to discuss it with you whenever you’re ready.

Brooks, coolness.

 Signature 

All I know is the wine lasts longer when you don’t gotta share it with someone
All I know is my steak tastes better when I take my steak tastes better pill
-- I Feel Fantastic, Jonathan Coulton

nowiser United States Posted on 09/22/2004 at 09:56 PM

nowiser pic

I type my own quote tags

I use the link button to insert links
and I haven’t a clue how to italicize and bold-face text.

Easily being able to bold and italicize would be very cool, so I’d vote for Textile.

***Dave United States Posted on 09/23/2004 at 08:32 AM

***Dave pic

Since I use simple text markup stuff on my Wiki, anything of that sort would be fine by me.  And you can squeeze the “how do I do that?” bits that 99% of the folk need into a very small space by the comment box itself.  Really, b/i/u/link would cover 95%, ul/ol and blockquote stuff another 4%.  Cover those, and I can’t think of much else that folks would need.

Guido Europe Posted on 09/23/2004 at 11:47 AM

Guido pic

I don’t allow any HTML in my comments, altough I do parse for links and ... well, link them.

IMHO, a comment (as well as an entry, for that matter) is not about formatting, but about content, and I myself never ever had the slightest intention to use formatting in a comment yet. But that’s just me smile

Les United States Posted on 09/23/2004 at 12:14 PM

Les pic

Guido, around here we get into some rather lengthy back-and-forths on some of the topics such as religion and politics so I’ve found that it’s often useful to employ blockquotes and lists. Blockquotes are doable with the limited HTML, but lists aren’t and that’s one tag I’d like to continue to have access to when commenting. So it really came down to a question of: Do I want to hack the script to include lists or should I just see if users would like to have access to one of the alternative methods of content markup?

In the end I may just decide “to hell” with the lists and turn on safe HTML and be happy with what I’ve got.

 Signature 

All I know is the wine lasts longer when you don’t gotta share it with someone
All I know is my steak tastes better when I take my steak tastes better pill
-- I Feel Fantastic, Jonathan Coulton

Page 1 of 1 pages

Name:

Email:

Location:

URL:

Smileys


Remember my personal information

Notify me of follow-up comments?

Submit the word you see below:


<< Back to main