display = 'none';
        });

        popup.addEventListener('click', function (event) {
            if (event.target === popup) {
                popup.style.display = 'none';
            }
        });
    });

    let currentMarkdown = '';
    const {Transformer} = window.markmap;
    const transformer = new Transformer();

    function loadMindmaps() {
        const history = JSON.parse(localStorage.getItem('mindmap-history') || '[]');
        const list = document.getElementById('mindmap-list');

     