Box in mermaid sequence in markdown does not render

You are using an old version of mermaid.js (v9.1.3). The problem you describe is fixed with v9.4.0 and later. The current version is v10.1.0.

The sample code in the documentation pulls in the latest release.