Is there a php version of the markup used for the stackexchange, more info on the mark up at Stackoverflow's Markup.

1 Answer 1


The most obvious is PHP Markdown.

That said, this is based on the original Markdown project by John Gruber, so won't necessarily contain the various improvements made by the SO team.

Whilst not directly relevant, there are some good blog posts and podcasts regarding the history and specific implementation of markdown on SO:

(Remembers how much he enjoyed the podcasts. Becomes momentarily maudlin. Etc.) ;-)

  • Do you know any lighter versions, maybe with less featues? this should be as simple as a single preg_replace don't you think? Though it may contain a large array.
    – JamesM
    Jan 19, 2011 at 22:28
  • @middaparka Can you please remove your answer i wish to remove this question, Thanks
    – JamesM
    Jan 19, 2011 at 22:31
  • 1
    @JamesM Why? (If it's deemed off-topic, etc. it'll be removed real-soon-now.) Jan 19, 2011 at 22:34
  • 1
    As an aside: I think many, if not all, of the Stack Exchange improvements are kind of backward compatible. Like the spoiler syntax renders fine (kind of) in other renderers.
    – Arjan
    Jan 19, 2011 at 22:39
  • 1
    @JamesM Incidentally, it's vastly more complex than "a single preg_replace". :-) Jan 19, 2011 at 22:41
  • 4
    (@James, I hope it's not your habit to remove questions once they have been answered. That is not only annoying, but also kills communities like this. See also Does systematic self-deleting need to be prevented?)
    – Arjan
    Jan 19, 2011 at 22:41
  • @middaparka : I want this question as I want to remove this question and then make another question with the real question that I intended for, just did not know how to word it, in other words i want to start fresh for this question.
    – JamesM
    Jan 20, 2011 at 2:19
  • @JamesM Just open a new question - this isn't the way MSO works. (Did you read the link @Arjan posted?) Jan 20, 2011 at 8:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .