Skip to content

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

Closed
@rijenkii

Description

@rijenkii

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions