Available options for SDK Node.setType


#1

Hi,

I cannot find any details about the available options for the Node.setType. I think I’ve checked all the docs and the only reference I have found is in the Nodes section, but it mentions only 2 types (heading, unordered).

thanks


#2

The API isn’t very precise on that because it is intended to support different documents that will contain different types… but in FoldingText it just does Markdown documents. Anyway (grabbing from code) I think these are the settable types.

heading
definition
blockquote
codeblock
empty
fencedcodebottomboundary
fencedcodetopboundary
footnotelinkdefinition
headingunderline
horizontalrule
body
linkdefinition
ordered
unordered
task

Headed off to bed now zzz.