Skip to main content
Knowledge maptext: How does text become a node?ArcBlock

You are here. See how this question connects to other ideas.

Select a node to open its page · Expand to read within the map

Knowledge mapFollow a connection. Understand a question.
← AFS and interfaces

One question

text: How does text become a node?

text expresses words, heading levels and supported formats.

A report title can be a text node. content supplies words and level can express heading hierarchy. Visible text does not automatically have a binding to a business resource.

Start with these properties

content holds the words to display. level specifies a heading from 1 to 6; omit it for body text. format chooses a supported presentation such as plain text, Markdown or code. A heading level expresses document structure, not just a larger font.

Read a structural example

From the source registry. This is structural reading material, not a live demo; referenced resources and actions require an application.

json
{
  "id": "heading-1",
  "type": "text",
  "props": {
    "content": "Welcome",
    "level": 1
  }
}

Here heading-1 identifies the node and Welcome is the displayed content. The words can change while the identifier remains. Treating displayed text as identity would make a copy edit disrupt references.

Read the text reference.

Check your understanding

What does the minimal Prepare the talk text example need?

A node id, the text type, and the words in props.content.