Convert markdown helper to markdown class with static parse method