I haven’t been too happy about the facilities for commenting in GraffitiCMS ever since I started using it. Great for minor feedback, but awful for pasting code when crafting an implementation detail as an example. Since StackOverflow uses MarkDown for its comments and I’ve grown used to that, I decided to experiment adding it to my blog here as well.
(It’s hosted elsewhere as well, by the way. It seems that several people have copied it into various software repositories.)
Problem number 2: GraffitiCMS modifies the text of a comment when you save it. The first is to encode the text so that entities like left angle bracket are converted to
< and so on. The rest of the modifications are pretty benign — essentially converting paragraphs by surrounding them with
That seemed like the simplest way out since I didn’t want to pre-process all the comments I already have in the database. Although this solution may be the easiest, it is a bit of a hack to be sure. Then again, I don’t particularly want to change the GraffitiCMS code either – I did that before and ran into issues when I wanted to refresh from the latest code from the GraffitiCMS project on CodePlex. I may be revisiting this decision later but for now I’m winging it.
So, there you have it. Rich text comments using MarkDown on the boyet blog.
Thievery Corporation - Un Simple Histoire (A Simple History)
(from The Richest Man in Babylon)