Add a pre tag to the Mermaid class to preserve indentation and ensure data retrieval on DOMContentLoaded