Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
b1ek opened this issue Jun 10, 2023 · 1 comment
Closed

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

b1ek opened this issue Jun 10, 2023 · 1 comment
Labels

Comments

@b1ek
Copy link

b1ek commented Jun 10, 2023

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

@b1ek b1ek added the type/bug label Jun 10, 2023
@silverwind
Copy link
Member

silverwind commented Jun 10, 2023

Duplicate of #25094. Will be fixed on #25131.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants