Mermaid diagram does not work inside <details> tag #13663

Closed
opened 2025-11-02 10:49:40 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @rijenkii on GitHub (Oct 31, 2024).

Description

Wrapping a mermaid diagram into a <details> tag causes its height to be invalid.

To reproduce create a comment with following contents:

<details>

```mermaid
---
title: Order example
---
erDiagram
    CUSTOMER ||--o{ ORDER : places
    ORDER ||--|{ LINE-ITEM : contains
    CUSTOMER }|..|{ DELIVERY-ADDRESS : uses
```

</details>

Reproduction on demo: https://demo.gitea.com/rijenkii/tjest/issues/2.

Gitea Version

1.23.0+dev-567-g9df5ddaf44

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

image

Git Version

No response

Operating System

No response

How are you running Gitea?

Demo

Database

None

Originally created by @rijenkii on GitHub (Oct 31, 2024). ### Description Wrapping a mermaid diagram into a `<details>` tag causes its height to be invalid. To reproduce create a comment with following contents: ````markdown <details> ```mermaid --- title: Order example --- erDiagram CUSTOMER ||--o{ ORDER : places ORDER ||--|{ LINE-ITEM : contains CUSTOMER }|..|{ DELIVERY-ADDRESS : uses ``` </details> ```` Reproduction on demo: https://demo.gitea.com/rijenkii/tjest/issues/2. ### Gitea Version 1.23.0+dev-567-g9df5ddaf44 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots ![image](https://github.com/user-attachments/assets/f95cc904-075e-4b77-858e-852f0595c61e) ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Demo ### Database None
GiteaMirror added the issue/confirmedtype/bug labels 2025-11-02 10:49:40 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13663