* Add functionality to generate multiple types of Mermaid charts * Update conditional statement in 解析历史输入 function