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

Do not highlight #number in documents #26365

Merged
merged 2 commits into from
Aug 7, 2023

Commits on Aug 7, 2023

  1. don't post-proccess issue index in documents

    - Currently the post processing will transform all issue indexes (such
    as  `go-gitea#6`) into an clickable link.
    - This makes sense in an situation like issues or PRs, where referencing
    to other issues is quite common and only referencing to their issue
    indexing is an handy and efficient way to do it.
    - Currently this is also run for documents (which is the user profile
    and viewing rendered files), but in those situations it's less common to
    reference issues by their index and instead could mean something else.
    - This patch disables this post processing for issue index for
    documents. Which matches Github's behavior.
    - Added unit tests.
    - Resolves https://codeberg.org/Codeberg/Community/issues/1120
    Gusted authored and earl-warren committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    27c5c54 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fc0b1ff View commit details
    Browse the repository at this point in the history