mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #21369] [CLOSED] feat: Add admin-configurable citation format (plain text vs markdown) #49098
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/21369
Author: @YannickPezeu
Created: 2/13/2026
Status: ❌ Closed
Base:
dev← Head:markdown_citations_PR📝 Commits (1)
b4b2af5feat: add admin setting for citation content format (plain text or markdown)📊 Changes
5 files changed (+35 additions, -1 deletions)
View changed files
📝
backend/open_webui/config.py(+6 -0)📝
backend/open_webui/main.py(+3 -0)📝
backend/open_webui/routers/auths.py(+4 -0)📝
src/lib/components/admin/Settings/General.svelte(+13 -0)📝
src/lib/components/chat/Messages/Citations/CitationModal.svelte(+9 -1)📄 Description
Pull Request Checklist
devbranch.Changelog Entry
Description
Adds an admin-configurable citation content format setting that allows switching between plain text and markdown rendering in citation modals. This enables richer formatting for RAG citation content when desired.
Added
CITATION_FORMATPersistentConfig setting (plain_textormarkdown) in backend configCitationModal.svelteusing the existingMarkdowncomponentChanged
CitationModal.sveltenow reads$config?.ui?.citation_formatto choose rendering mode/api/configendpoint exposescitation_formatin the UI configauths.pyinclude the new settingScreenshots or Videos
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.