danieleggert/MarkdownParser — pull request #1 by JanX2 (2012-11-18 15:16:45+00:00)
Title: OS X port

Hi!

I just ported this over to OS X. It’s a framework there and the way I ported it is a bit tacky, but it allows you to make changes without thinking much about OS X compatibility.

A few issues seem worthy of improvement:
1. Currently the way of getting to the attributed string is pretty roundabout. We could probably improve that by using NSScanner to scan using an NSCharacterSet of the private use area code points, and building a tree from that or we could use the version of discount I have been working on. It produces a parse tree directly. Currently it’s missing span level support in the parse tree...

2. The different headline sizes should not be derived by addition but via multiplication so that we can get them to behave like this:

Cheers,
Jan