Skip to content

:TOC: label in "org mode" readme files should be hidden #14074

@finex

Description

@finex
  • Gitea version (or commit ref): 1.13.0

  • Git version: 2.11.0

  • Operating system: Debian (official gitea docker image)

  • Database (use [x]):

    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite

Description

I've created a README.org file using Emacs org mode. The file is something like:

#TITLE: file title

* Table of contents :TOC:
- [[#title][Title]]

* Title
Lorem ipsum...

Usually github/gitlab doesn't show the :TOC: attribute, which is used by Emacs to regenerate the table of contents on save.

Screenshots

Actual result:

image

Desidered behaviour:

image

Extra issues

I've found other two "bugs", the first is that if the README already has a TOC, gitea shouldn't render his own index. The second is that the anchors generated using org mode doesn't works. Should I open two separate issues for this two bug?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/upstreamThis is an issue in one of Gitea's dependencies and should be reported there

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions