Starting issue text with issue reference "#<number> more text..." does not link issue #3971

Closed
opened 2025-11-02 05:32:13 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @ghost on GitHub (Sep 17, 2019).

  • Gitea version (or commit ref): 1.9.3
  • Git version: 2.20.1
  • Operating system: debian buster
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
  • Log gist:

Description

If I create an issue and start the text with an issue reference it will instead cause the rendered markdown to produce a header

#1 is my open issue

^ will not produce the link to issue number 1 but instead create a header entry in the markdown

Screenshots

Screenshot_2019-09-17 example
Screenshot_2019-09-17 example(1)

Just to compare to github:

Screenshot_2019-09-17 go-gitea gitea
Screenshot_2019-09-17 go-gitea gitea(1)

Originally created by @ghost on GitHub (Sep 17, 2019). - Gitea version (or commit ref): 1.9.3 - Git version: 2.20.1 - Operating system: debian buster - Database (use `[x]`): - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes [example here](https://try.gitea.io/enckse/example/issues/2) - [ ] No - [ ] Not relevant - Log gist: ## Description If I create an issue and start the text with an issue reference it will instead cause the rendered markdown to produce a header ``` #1 is my open issue ``` ^ will not produce the link to issue number 1 but instead create a header entry in the markdown ## Screenshots ![Screenshot_2019-09-17 example](https://user-images.githubusercontent.com/1933941/65072991-f3634300-d95f-11e9-97e6-00eefc5e64ab.png) ![Screenshot_2019-09-17 example(1)](https://user-images.githubusercontent.com/1933941/65072998-f5c59d00-d95f-11e9-8547-e79e14806280.png) Just to compare to github: ![Screenshot_2019-09-17 go-gitea gitea](https://user-images.githubusercontent.com/1933941/65073086-1db50080-d960-11e9-8e47-d4a870831b6e.png) ![Screenshot_2019-09-17 go-gitea gitea(1)](https://user-images.githubusercontent.com/1933941/65073159-45a46400-d960-11e9-89df-30b2a85c361a.png)
GiteaMirror added the issue/confirmedtype/bug labels 2025-11-02 05:32:13 -06:00
Author
Owner

@guillep2k commented on GitHub (Sep 17, 2019):

It is, however, the expected behavior, as # is a marker for a title. You can preceed the # with a space to "cheat" the marking:

#123  <--- It's a title
 #123 <--- It's not (it's a reference)
@guillep2k commented on GitHub (Sep 17, 2019): It is, however, the expected behavior, as `#` is a marker for a title. You can preceed the `#` with a space to "cheat" the marking: ``` #123 <--- It's a title #123 <--- It's not (it's a reference) ```
Author
Owner

@lunny commented on GitHub (Sep 18, 2019):

This should be an execution order problem. Maybe we should replace the #123 before we render that as a markdown.

@lunny commented on GitHub (Sep 18, 2019): This should be an execution order problem. Maybe we should replace the `#123` before we render that as a markdown.
Author
Owner

@stale[bot] commented on GitHub (Nov 17, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Nov 17, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@ghost commented on GitHub (Nov 17, 2019):

Unless this has been fixed as a side-effect and not linked to this issue - it is still open.

@ghost commented on GitHub (Nov 17, 2019): Unless this has been fixed as a side-effect and not linked to this issue - it is still open.
Author
Owner

@lunny commented on GitHub (Jan 17, 2020):

I think this has been fixed.

@lunny commented on GitHub (Jan 17, 2020): I think this has been fixed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3971