 => setTimeout(resolve, 100));
                mm.fit();

                setTimeout(() => {
                    mm.fit();
                    setTimeout(() => {
                        mm.fit();
                    }, 300);
                }, 500);

            }

            function setupButtons(markdown, topic) {
                document
                    .getElementById('download-btn')
                    .addEventListener('click', () => {
                        document.getElementById('download-opt