Skip to main content

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

NameTypeDefault valueDescription
textstring''The text used inside the HashtagNode.

Returns

HashtagNode

  • The HashtagNode with the embedded text.

Defined in

lexical-hashtag/src/LexicalHashtagNode.ts:69


$isHashtagNode

$isHashtagNode(node): node is HashtagNode

Determines if node is a HashtagNode.

Parameters

NameTypeDescription
nodeundefined | null | LexicalNodeThe node to be checked.

Returns

node is HashtagNode

true if node is a HashtagNode, false otherwise.

Defined in

lexical-hashtag/src/LexicalHashtagNode.ts:78