Implement '^d' and horizontal lines in popup texts