Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

This question already has an answer here:

Precisely which type of markdown (afaik there are quite a few variants) and editor (the one I am typing in right now) is Stack Overflow using?

I understand, there must be a JavaScript realtime implementation (which shows me the preview below). Where could I get that?

I hope there's also a PHP implementation, so I can turn markdown into HTML in the backend?

Ultimately I want to turn a very proprietary wordpress theme into being markdown based, since I find this the exact right balance between complexity and ease of use. Many 'wiki syntaxes' are in my opinion off to one side or the other.

share|improve this question

marked as duplicate by Shadow Wizard discussion Aug 6 '15 at 10:32

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

The de facto standard Markdown library for PHP is PHP Markdown. – user149432 May 21 '12 at 8:54
up vote 5 down vote accepted

You're looking for:

  • MarkdownSharp - C# Markdown processor
  • pagedown - A JavaScript Markdown converter and editor
  • prettify - A Javascript module and CSS file that allows syntax highlighting of source code snippets in an html page.

You can find the full supported Markdown syntax in the editing help page.

share|improve this answer
Don't forget Jeff's HTML Sanitizer. – Henrik Ripa May 21 '12 at 8:26
Thank you. I also found something at (not yet tested about compatibility differences) – Frank N May 21 '12 at 12:22

StackExchange uses the MarkdownSharp implementation, written in C#. Converting it to php would likely be quite the task.

See also: Which tools and technologies build the Stack Exchange Network?

share|improve this answer

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