Hello World!
February 18, 2023
This blog post is written in a public workspace hosted in AFFiNE.
- on the leaf
yText
node, we get thedelta
and convert to MD using quill-delta-to-markdown
Inline strike through .
code
, quote
- list item 1
- list item 2
- list item 3
async function getYDoc(id: string) {
const response = await fetch(`${target}/api/public/doc/${id}`);
const updates = await response.arrayBuffer();
const doc = new Y.Doc();
Y.applyUpdate(doc, new Uint8Array(updates));
return doc;
}