Skip to content

Conversation

@hshpy
Copy link
Contributor

@hshpy hshpy commented Aug 26, 2025

修复文本编辑器无法编辑markdown源文件

前端:OpenListTeam/OpenList-Frontend#189

@ILoveScratch2 ILoveScratch2 requested a review from Copilot August 26, 2025 13:44
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes an issue where markdown source files couldn't be edited in the text editor by adding a raw query parameter check to bypass markdown processing when needed.

  • Adds raw query parameter parsing to control markdown processing behavior
  • Modifies the markdown processing condition to respect the raw parameter
  • Allows direct access to markdown source content when raw=true is specified

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@xrgzs xrgzs linked an issue Aug 27, 2025 that may be closed by this pull request
8 tasks
@xrgzs
Copy link
Member

xrgzs commented Aug 27, 2025

需要测试一下这个 raw 查询字符串会不会被转发到上游,如果会的话,需要加入到忽略直链参数中,或者用 Header 传输

@hshpy
Copy link
Contributor Author

hshpy commented Aug 27, 2025

需要测试一下这个 raw 查询字符串会不会被转发到上游,如果会的话,需要加入到忽略直链参数中,或者用 Header 传输

已添加

@xrgzs xrgzs merged commit 04a5e58 into OpenListTeam:main Aug 28, 2025
12 checks passed
@hshpy hshpy deleted the fix8 branch August 28, 2025 09:29
ForSourceCodeAnalysis pushed a commit to ForSourceCodeAnalysis/OpenList that referenced this pull request Oct 4, 2025
* fix(server): can't edit .md source files

* chore

* add ignore direct link args
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] README.md在openlist内编辑时候被错误转译为html源码

2 participants