Update lib/markdown.php

small fix to avoid **Fatal error: Using $this when not in object context**