Mentions a resource, optionally one of its documents. text is the label shown in the editor and is what plainText reads. Like every other run helper it returns a run array holding one MentionRun, so it nests anywhere text goes.
text
Optional
const line = p('Ruled by ', mention({ resourceId: 'res_456', text: 'Princess Bubblegum' })) Copy
const line = p('Ruled by ', mention({ resourceId: 'res_456', text: 'Princess Bubblegum' }))
Mentions a resource, optionally one of its documents.
textis the label shown in the editor and is what plainText reads. Like every other run helper it returns a run array holding one MentionRun, so it nests anywhere text goes.