           const mindMapData = {
                        id: +id,
                        topic: data.topic,
                        markdown: data.markdown,
                        timestamp: new Date().toISOString()
                    };

                    currentMarkdown = data.markdown;

                    if (!history.some(item => item.id === mindMapData.id)) {
                        history.unshift(mindMapData);
                        if (history.length > 100) {
                            histo