Copy marked parser to js and adjust page header code