Implementation
Extract a leading H1 and store the body as Markdown so the source stays editable.
Try it
Import a file with a title, a list, and a code block, then verify that the preview links to each heading.
const html = markdown.render(source);
NOTE / Markdown
Import drafts while preserving headings, lists, and code blocks.
Extract a leading H1 and store the body as Markdown so the source stays editable.
Import a file with a title, a list, and a code block, then verify that the preview links to each heading.
const html = markdown.render(source);