Skip to content
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

feat(store): add markdown adapter #4624

Merged
merged 3 commits into from
Sep 6, 2023
Merged

Conversation

fourdim
Copy link
Contributor

@fourdim fourdim commented Sep 6, 2023

Sample Usage:

import { MarkdownAdapter } from '@blocksuite/store';
const markdownAdapter = new MarkdownAdapter();

const snapshot = await job.pageToSnapshot(page);

const markdown = await markdownAdapter.convertPageSnapshotToAdapterTarget({ snapshot })

@vercel
Copy link

vercel bot commented Sep 6, 2023

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 Sep 6, 2023 8:10am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
blocksuite-docs ⬜️ Ignored (Inspect) Visit Preview Sep 6, 2023 8:10am

@Saul-Mirone
Copy link
Collaborator

Saul-Mirone commented Sep 6, 2023

May you update the PR details about how can we use an adapter?

@doodlewind doodlewind added the notable Major improvement worth emphasizing label Sep 6, 2023
@fourdim fourdim merged commit 7bb4550 into toeverything:master Sep 6, 2023
18 checks passed
@fourdim
Copy link
Contributor Author

fourdim commented Sep 6, 2023

May you update the PR details about how can we use an adapter?

PR details updated. Is that ok for you?

@fourdim fourdim deleted the adapter branch September 6, 2023 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notable Major improvement worth emphasizing
Projects
Archived in project
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants