Using marked instead of markdown library.
marked has girhub-flavoured-markdown support.