feat(markdown_normalizer): add details tag normalization and update documentation

This commit is contained in:
fujie
2026-01-17 16:30:14 +08:00
parent 71bef146c8
commit 94540cc131
7 changed files with 175 additions and 14 deletions

View File

@@ -4,6 +4,7 @@ A production-grade content normalizer filter for Open WebUI that fixes common Ma
## Features
* **Details Tag Normalization**: Ensures proper spacing for `<details>` tags (used for thought chains). Adds a blank line after `</details>` and ensures a newline after self-closing `<details />` tags to prevent rendering issues.
* **Mermaid Syntax Fix**: Automatically fixes common Mermaid syntax errors, such as unquoted node labels (including multi-line labels and citations) and unclosed subgraphs, ensuring diagrams render correctly.
* **Frontend Console Debugging**: Supports printing structured debug logs directly to the browser console (F12) for easier troubleshooting.
* **Code Block Formatting**: Fixes broken code block prefixes, suffixes, and indentation.
@@ -29,7 +30,11 @@ A production-grade content normalizer filter for Open WebUI that fixes common Ma
* `priority`: Filter priority (default: 50).
* `enable_escape_fix`: Fix excessive escape characters.
* `enable_thought_tag_fix`: Normalize thought tags.
* `enable_thought_tag_fix`: 规范化思维标签。
* `enable_details_tag_fix`: Normalize details tags (default: True).
* `enable_details_tag_fix`: 规范化 Details 标签 (默认: True)。
* `enable_code_block_fix`: Fix code block formatting.
* `enable_code_block_fix`: 修复代码块格式。
* `enable_latex_fix`: Normalize LaTeX formulas.
* `enable_list_fix`: Fix list item newlines (Experimental).
* `enable_unclosed_block_fix`: Auto-close unclosed code blocks.