Footnote rendering (markdown) #2508

Closed
opened 2025-11-02 04:38:53 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @garyritchie on GitHub (Nov 9, 2018).

  • Gitea version (or commit ref): 38d8b8c built with: bindata, sqlite
  • Git version: 2.15.2
  • Operating system: Docker image: gitea/gitea:1.5.1 on Ubuntu 16.04
  • Database (use [x]):
    • PostgreSQL
    • [x ] MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

Pandoc style footnotes in markdown aren't rendered to html on the site but the feature seems to be available: https://github.com/go-gitea/gitea/blob/master/vendor/github.com/russross/blackfriday/markdown.go

Example:

This is an example Pandoc-style footnote[^1]. What about inline notes?^[This requires an addtitional extension]. URL-only[^2] footnotes seem to be working.

[^1]: Footnote note with URL: https://pandoc.org/MANUAL.html#footnotes
[^2]: https://pandoc.org/MANUAL.html#footnotes

See screenshot below...

Screenshots

image

Originally created by @garyritchie on GitHub (Nov 9, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 38d8b8c built with: bindata, sqlite - Git version: 2.15.2 - Operating system: Docker image: gitea/gitea:1.5.1 on Ubuntu 16.04 - Database (use `[x]`): - [ ] PostgreSQL - [x ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [ ] Not relevant - Log gist: ## Description [Pandoc style footnotes](https://pandoc.org/MANUAL.html#footnotes) in markdown aren't rendered to html on the site but the feature seems to be available: https://github.com/go-gitea/gitea/blob/master/vendor/github.com/russross/blackfriday/markdown.go Example: ```markdown This is an example Pandoc-style footnote[^1]. What about inline notes?^[This requires an addtitional extension]. URL-only[^2] footnotes seem to be working. [^1]: Footnote note with URL: https://pandoc.org/MANUAL.html#footnotes [^2]: https://pandoc.org/MANUAL.html#footnotes ``` See screenshot below... ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** --> ![image](https://user-images.githubusercontent.com/853094/48234959-cb8f7000-e389-11e8-8a4f-00ae6df57f6d.png)
GiteaMirror added the type/enhancementissue/stale labels 2025-11-02 04:38:53 -06:00
Author
Owner

@stale[bot] commented on GitHub (Jan 8, 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 (Jan 8, 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

@stale[bot] commented on GitHub (Feb 22, 2019):

This issue has been automatically closed because of inactivity. You can re-open it if needed.

@stale[bot] commented on GitHub (Feb 22, 2019): This issue has been automatically closed because of inactivity. You can re-open it if needed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2508