File_link¶
File_link type nodes reference a link to an external file in a non-sdoc format, such as .md and .txt and others. File_link nodes are inline nodes, typically wrapped within paragraph
nodes. Along with generic node attributes, file_link nodes include the following attributes:
-
doc-uuid
(required, string) represents the file address within Sdoc. -
title
(required, string) represents the filename. -
display-type
(required, string) represents display type of file.
File_link nodes contain a text
node that displays the filename.
Node structure example¶
{
"id": "afLKcmNdR4ii2ZqvH8PP8w",
"type": "file_link",
"doc_uuid": "c24cee20-88c2-4dba-beb9-4032c5e2c3e1",
"title": "aaa.txt",
"display_type": "text_link",
"children": [
{
"id": "bKfw6ms4QlqUf1J5aFCr4w",
"text": "aaa.txt"
}
]
}