Skip to content

Conversation

@hshpy
Copy link
Contributor

@hshpy hshpy commented Aug 26, 2025

No description provided.

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 .md source files cannot be edited by adding a raw parameter to the useFetchText hook to fetch files in their raw format without processing.

  • Modified useFetchText hook to accept an optional raw parameter
  • Updated text editor component to use raw mode when fetching content
  • Added URL parameter logic to append raw=true when raw mode is enabled

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/hooks/useUtil.ts Added optional raw parameter to useFetchText hook with URL parameter handling
src/pages/home/previews/text-editor.tsx Updated to call useFetchText with raw=true parameter

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
4 tasks
@xrgzs xrgzs merged commit d3c6476 into OpenListTeam:main Aug 28, 2025
1 check passed
@hshpy hshpy deleted the fix1 branch August 28, 2025 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

关于原alist有的一个text editor的bug

2 participants