This is **not** a duplicate of [this question](https://stackoverflow.com/questions/605434/how-would-you-go-about-parsing-markdown).
===================================================================================================================================

I want to make my own rules to a `markdown parser` like the one here in StackOverflow.

That means, converting `*italic*` into `<span style="font-style:italic">italic</span>`.

I know there are a lot of Parsers out there, but **i don't understand them**. The question previously mentioned doesn't really give me a lot to go on, it just links to more parsers and doesn't *explain* how they work.

So I would like to know the basics, or the logic, of creating a whole markdown parser, and if you think explaining it to me it's not a pleasent task then don't. Thanks for understanding :)