I've extracted (from another project I'm working on) a Markdown Parser written in PHP. It is written in PHP. It is not a pure Markdown parser (eg adding header id's), not fast, not a competitor to PHPMarkdown. However, it *may* be of interest to someone. The code (and docs) can be found here: https://github.com/koenhoeymans/AnyMark
Apparently Analagous Threads
- markdown implementation in C using PEG grammar
- a new acceptance of a variety of (inconsistent) markdown implementations
- Parser question + Markdown "wysiwyg"
- php-markdown-extra-extended - my humble attempt at extending php-markdown
- Object-Oriented PHP Markdown/SmartyPants