[porting] Parse latex into a url