-
-
Notifications
You must be signed in to change notification settings - Fork 534
fix(page): the imported markdown file name is displayed by default #6702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
fourdim
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries. These two buttons have the same effect.
Merge activity
|
21cdb13 to
63ee274
Compare
|
No worries. CC @doodlewind to merge it manually. |
| const pageIds: string[] = []; | ||
| for (const file of files) { | ||
| const text = await file.text(); | ||
| const [fileName] = file.name.split('.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe file.name.split('.').slice(0, -1).join('.') would be more accurate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for your reply!
## Features - toeverything/blocksuite#6728 @fundon - toeverything/blocksuite#6714 @doouding - toeverything/blocksuite#6733 @pengx17 - toeverything/blocksuite#6560 @golok727 - toeverything/blocksuite#6727 @pengx17 - toeverything/blocksuite#6645 @regischen - toeverything/blocksuite#6724 @fundon - toeverything/blocksuite#6719 @zzj3720 - toeverything/blocksuite#6682 @donteatfriedrice ## Bugfix - toeverything/blocksuite#6734 @Flrande - toeverything/blocksuite#6732 @fourdim - toeverything/blocksuite#6726 @pengx17 - toeverything/blocksuite#6721 @Flrande - toeverything/blocksuite#6725 @fundon - toeverything/blocksuite#6716 @golok727 - toeverything/blocksuite#6723 @donteatfriedrice - toeverything/blocksuite#6722 @pengx17 - toeverything/blocksuite#6718 @donteatfriedrice - toeverything/blocksuite#6702 @Tzyito - toeverything/blocksuite#6711 @Tzyito - toeverything/blocksuite#6694 @fundon - toeverything/blocksuite#6717 @golok727 ## Refactor - toeverything/blocksuite#6672 @Saul-Mirone ## Misc - toeverything/blocksuite#6720 @raintoway
fix #6666 & toeverything/AFFiNE#6460
This will make the file as doc default name when uploading markdown files. But I’m not sure if I need to do this when uploading other types of files.
(btw: One thing I'm confused about is whether these two buttons have the same effect.
