◄ home

Hello World!

February 18, 2023
This blog post is written in a public workspace hosted in AFFiNE.
  • on the leaf yText node, we get the delta and convert to MD using quill-delta-to-markdown 5nyuJwBBlG1D6-5K5tgewo6jA6ayroxY0uPeR1lRJZQ=
Inline code, strike through .
quote
  • list item 1
  • list item 2
  • list item 3 Er3KeyH6LdEGMo8Xbwp22LpvKTum7gGtPp87j_Ip2D4=
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;
}
cd ~