Textile comments

OK, so adpb has said for ages that comments are Textile parsed, and there’s a JavaScript preview. I never released the JS Textile code, but Sam Newman hassled me for it and released it himself, and good on him. It’s been broken here for a while, and I’ve finally got around to fixing it. Moreover, it turns out that comments were never and have never been Textile parsed; the comment preview was not what you got when the comment was posted. For example, links weren’t done, as can be seen on some old posts. That’s now fixed. I think.

9 Responses to “Textile comments”

  1. Nice, very nice! :)

    This made me wonder if it would be possible to run PyTextile on the server, and make a XML HTTP Request to generate the preview… perhaps after each paragraph? I don’t think it would be as smooth as this, though.

    Roberto
  2. Yep, it’s possible! :-)

    I just set a demo on my weblog using the XML HTTP Request to build the preview without reloading the page.

    Roberto
  3. Nice demo :)
    I prefer the on-the-fly nature of mine, but PyTextile does have much better support…

    sil
  4. Jeff Minard went and added some support for other constrcts such as support for h and br, as well as fixing some little bugs – I’m not sure if you folded his changes back in or not…

    Sam Newman
  5. I haven’t, because I haven’t had time. I need to properly release the library, rather than just occasionally linking to it—unless someone else wants to take over maintenance? As long as the API (such as it is) remains the same, I’m happy with it :-)

    sil
  6. !

    John
  7. thufje wef p dwj efo eo eo

    Anonymous
  8. Good+Work%21

    Biotlon
  9. [...] So, after some Googling, I came across efforts to achieve Textile parsing in JavaScript by these two (see it in action here). [...]

    Technoscrabble » Blog Archive » Parsing Textile formatting with JavaScript