mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #17869] [CLOSED] feat: Add Footnote Reference Support to Markdown #40211
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/17869
Author: @danielaskdd
Created: 9/28/2025
Status: ❌ Closed
Base:
main← Head:gzdaniel📝 Commits (10+)
15bd504fix: fixed the hover effect for the MessageInput Integrations buttone7ccaf6Fix: milvus error because the limit set to None by default123dbf1feat: Add DISKANN index type support for Milvusb550d78Merge branch 'open-webui:main' into fix-milvus-limit-error9e3d540Merge branch 'open-webui:main' into feat-milvus-diskann-support42faa63fix: show error message when the uploading file is modified90a5b3bfix: 'Set as default'36da2b0Update translation.json (pt-BR)d126c23Merge pull request #17783 from joaoback/patch-10ac6292bFix: truncate long model tags with a character limit📊 Changes
85 files changed (+3567 additions, -1272 deletions)
View changed files
📝
.gitignore(+4 -0)📝
backend/open_webui/config.py(+10 -0)📝
backend/open_webui/functions.py(+6 -0)📝
backend/open_webui/main.py(+1 -1)➕
backend/open_webui/migrations/versions/a5c220713937_add_reply_to_id_column_to_message.py(+34 -0)📝
backend/open_webui/models/chats.py(+15 -1)📝
backend/open_webui/models/folders.py(+14 -0)📝
backend/open_webui/models/messages.py(+97 -12)📝
backend/open_webui/retrieval/vector/dbs/milvus.py(+12 -4)📝
backend/open_webui/routers/channels.py(+33 -56)📝
backend/open_webui/routers/chats.py(+32 -0)📝
backend/open_webui/routers/configs.py(+30 -29)📝
backend/open_webui/routers/folders.py(+2 -9)📝
backend/open_webui/routers/notes.py(+12 -0)📝
backend/open_webui/routers/tools.py(+25 -9)📝
backend/open_webui/routers/users.py(+1 -0)📝
backend/open_webui/socket/main.py(+17 -0)📝
backend/open_webui/utils/middleware.py(+238 -179)📝
backend/open_webui/utils/misc.py(+0 -7)📝
backend/open_webui/utils/models.py(+1 -0)...and 65 more files
📄 Description
feat: Add Footnote Reference Support to Markdown
Overview
This PR adds support for footnote references in Markdown content using the syntax
[^1],[^note], etc. Footnote references are rendered as superscript text that blends naturally with the surrounding content.Footnote references are very common in RAG-generated content. Therefore, it is essential that Open-WebUI correctly renders these footnotes for improved readability and visual consistency.
Related Discussion : #17867
Feature Added
[^1],[^note]Rendering Behavior
Screenshots
Breaking Changes
n/a
Changes Made
New Extension (
src/lib/utils/marked/footnote-extension.ts)[^identifier]where identifier can be alphanumeric, underscore, or hyphenIntegration Updates
footnoteReftoken typeStyling (
src/app.css)Security
Testing Considerations
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.