Documentation

website.modules.markdown-editor.upload-tree

Editor-only upload nodes are inserted into a parsed tree, never authored source.

before-upload

(before-upload node id)

Return the pure partial Markdown tree before a native upload node. The caller serializes this prefix to locate the insertion point in canonical Markdown.

exported-image

(exported-image attributes)

image-component

import-images

(import-images node uploads)

Ordinary Markdown images use the same native media node as completed uploads. Upload association is editor-only; canonical export contains only image data.

insert-at

(insert-at node id position value-offset)

Use parser source positions, preserving the surrounding formatting tree. Opaque blocks receive a neighboring chip; the source editor retains its exact point.

insert-uploads

(insert-uploads tree positions value-offset)

layout-keys

upload-ids

(upload-ids tree)

upload-name

upload-node

(upload-node id position)

upload-node?

(upload-node? node)