Module: @lexical/hashtag
Classes
Functions
$createHashtagNode
▸ $createHashtagNode(text?): HashtagNode
Generates a HashtagNode, which is a string following the format of a # followed by some text, eg. #lexical.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
text | string | '' | The text used inside the HashtagNode. |
Returns
- The HashtagNode with the embedded text.
Defined in
packages/lexical-hashtag/src/LexicalHashtagNode.ts:69
$isHashtagNode
▸ $isHashtagNode(node): node is HashtagNode
Determines if node is a HashtagNode.
Parameters
| Name | Type | Description |
|---|---|---|
node | undefined | null | LexicalNode | The node to be checked. |
Returns
node is HashtagNode
true if node is a HashtagNode, false otherwise.