fix(client): replace naive UI regex with robust state-machine markdown parser 8906089 E5K7 commited on Mar 24