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

Add possibility to display line numbers in Markdown files #11259

Closed
2 of 7 tasks
kevung opened this issue Apr 30, 2020 · 1 comment · Fixed by #19356
Closed
2 of 7 tasks

Add possibility to display line numbers in Markdown files #11259

kevung opened this issue Apr 30, 2020 · 1 comment · Fixed by #19356
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@kevung
Copy link

kevung commented Apr 30, 2020

  • Gitea version (or commit ref):
    1.11.4 built with GNU Make 4.1, go1.13.9 : bindata, sqlite, sqlite_unlock_notify
  • Git version:
  • Operating system: Linux 5.6.7-arch1-1
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

The line numbers are displayed for text files, but since Markdown is processed on the web interface, line numbers are not displayed.

Is it possible to display line numbers in Markdown files from the web interface?
In my case, I write project documentation in Markdown and I would like to be able to refer/quote some Markdown content with the line numbers inside issues.

Thanks :)

@kevung
Copy link
Author

kevung commented Apr 30, 2020

@lunny lunny added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label May 2, 2020
Gusted pushed a commit to Gusted/gitea that referenced this issue Apr 9, 2022
- Adds a button to switch between the source blob and the rendered blob.
Currently these buttons are only shown for markdown files, it is the only blob
that can be shown rendered and shown source without having to show raw
binary code.
- Resolves go-gitea#11259
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants