Skip to content

[1.20] Profile readme seems to be trimmed before rendering #25191

@b1ek

Description

@b1ek

Description

I wanted to try out the profile readme thing, but it isn't rendered as its supposed to be. I can't upload an image, but you can see it on my gitea instance and how its supposed to be

I looked over the code, and the thing seems to be locateed here. My guess is that the markdown.RenderString method uses 2nd argument to limit the HTML output length, but since the size of original file is passed, it causes unwanted trimming of content.

Gitea Version

 1.20.0+rc0-9-gde1d14590 built with GNU Make 4.4.1, go1.20.5 : bindata, timetzdata, sqlite, sqlite_unlock_notify

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

not relevant / useful

Screenshots

No response

Git Version

2.40.1, Wire Protocol Version 2 Enabled Repository Root Path

Operating System

Using one of the nightly 1.20 docker images

How are you running Gitea?

I am using this docker image

Database

PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions