Docs: Split pasted Markdown or HTML into real blocks and import .md/.docx files
Notion turns pasted rich content into headings, lists and code blocks, and imports Markdown, CSV, Word, Google Docs, HTML and Confluence exports (https://www.notion.com/help/import-data-into-notion). Our onPaste in components/docs/DocsBlockEditor.tsx sanitizes the clipboard and inserts everything into the current block, with block elements collapsed to newlines, so pasting a README or a Google Doc yields one giant paragraph. Teams migrating from Notion, Google Docs or a repo README hit this on day one, and it blocks adoption. First scope: when the clipboard holds multiple block-level elements or Markdown syntax, parse it (marked is already a dependency) into DocsBlock[] and splice them after the caret; then an Import button that accepts .md/.txt/.html files and a zipped Notion Markdown export, preserving the folder tree as subpages. Priority: high. Effort: M. Compared with Notion.
Comentarios 0
Sin comentarios todavía.
Ingresá para comentar