Skip to content

Conversation

@Tzyito
Copy link
Contributor

@Tzyito Tzyito commented Apr 8, 2024

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.
image

@vercel
Copy link

vercel bot commented Apr 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
blocksuite ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 9, 2024 11:53am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
blocksuite-docs ⬜️ Ignored (Inspect) Visit Preview Apr 9, 2024 11:53am

Copy link
Collaborator

@fourdim fourdim left a 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.

@graphite-app
Copy link

graphite-app bot commented Apr 9, 2024

Merge activity

@Tzyito Tzyito force-pushed the block/import-md-name branch from 21cdb13 to 63ee274 Compare April 9, 2024 02:05
@fourdim
Copy link
Collaborator

fourdim commented Apr 9, 2024

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('.');
Copy link
Member

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?

Copy link
Contributor Author

@Tzyito Tzyito Apr 9, 2024

Choose a reason for hiding this comment

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

thanks for your reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Importing markdown files, the page title always displays untitled

5 participants