Broken/Non-standard AsciiDoc Syntax and Formatting #1120
Labels
No labels
accessibility
bug
bug
infrastructure
Codeberg
contributions welcome
docs
duplicate
enhancement
infrastructure
legal
licence / ToS
please chill
we are volunteers
public relations
question
question
user support
s/Forgejo
s/Forgejo/migration
s/Pages
s/Weblate
s/Woodpecker
security
service
upstream
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Codeberg/Community#1120
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
AsciiDoc formatting is not respected on Codeberg, such as escaped links in headings, and first-level headings being stripped out entirely; this is not how AsciiDoc should be rendered as it is not compliant with the official AsciiDoc syntax and AsciiDoc/AsciiDoctor formatting. This issue makes it borderline impossible to continue using Codeberg for my AsciiDoc projects, and the issue does not occur on upstream Gitea, making it an issue of either Forgejo or Codeberg (likely a renderer issue, meaning the renderer isn't compliant with standard AsciiDoc formatting and/or syntax, which shouldn't be the case since AsciiDoc is fully standardised). I fully classify this as a bug even if it is a Codeberg design decision as it breaks standardisation with AsciiDoc (AsciiDoc is not like Markdown, with different variants; when rendered as-is, it should be fully compliant).
To reproduce, create an AsciiDoc file with first-level heading (which is not shown after rendering), and escaped links in headings (links are still active). It is possible there are more issues with AsciiDoc rendering I have not yet noticed.
Codeberg example (non-compliant AsciiDoc formatting)
GitHub example (compliant AsciiDoc formatting)
My personal Gitea instance example (compliant AsciiDoc formatting)
Can you review the section in https://codeberg.org/Codeberg-Infrastructure/build-deploy-forgejo/src/branch/codeberg-1.19/etc/gitea/conf/base.ini#L203 to see if there's something obviously wrong in our configuration?
Thanks for the response. I have reviewed my own code and the Gitea code (since Forgejo is Gitea-based), and have noticed that (as per Gitea documentation) you don't seem to have the
showtitleargument in the AsciiDoc renderer code.As for why escaped links are still showing on Codeberg, despite not showing elsewhere, I see no issue there, making it likely to be a back-end or AsciiDoctor issue rather than a front-end issue.
Yeah it's an issue from Forgejo/Gitea, it convert's all
#XXXto issues, which makes sense in issue comments, but not in documents, but there's no condition to avoid that yet. I will open an PR to add theshowtitleattribute as that seems fine and doesn't seem to break anything. As for the issue converting, that has to be fixed on the Forgejo side.showtitleoption for AsciiDoc renderer #110Opened Codeberg-Infrastructure/build-deploy-forgejo#110 to fix the title issue.
Opened forgejo/forgejo#1170 to fix the conversion of
#XXXto links.@Gusted @fnetX You have my sincere thank you for fixing both the
showtitleissue and the issue-numbers-in-documents issue.I have switched from Gitea to Forgejo on my personal Git server, and appreciate the handling of these issues and the reasoning behind them. Keep up the good work!