Skip to content

Frontmatter summary icon is not displayed #34101

Closed
@rijenkii

Description

@rijenkii

Description

<summary> of the <details> tag which contains contents of the markdown frontmatter contains an <i class="icon table"> tag, but it does not render.

Example issue body:

---
this: is
a: yaml frontmatter
---
the `<summary>` of the `<details>` html tag above has element `<i class="icon table"></i>`, and it does not render.

Demo link: https://demo.gitea.com/rijenkii/123123/issues/1

Related code:

// FIXME: the "icon xxx" is from Fomantic UI, it's really questionable whether it still works correctly
err := r.renderInternal.FormatWithSafeAttrs(w, `<i class="icon %s"></i>`, name)

Possibly related code:

rc := &RenderConfig{
Meta: markup.RenderMetaAsDetails,
Icon: "table",
Lang: "",
}

Gitea Version

1.24.0+dev-529-g92dfec704f

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

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions