        if (mutation.attributeName === 'class') {
                      const isDark = document.documentElement.classList.contains('dark');
                      document.querySelectorAll('.EasyMDEContainer').forEach(container => {
                          container.classList.toggle('dark-theme', isDark);
                      });
                  }
              });
          });

          observer.observe(document.documentElement, {
              attributes: true,
              attributeFilter: ['class