Skip to content

Commit

Permalink
feat: export importVisitors$, usedLexicalNodes$, usedLexicalNodes$ ce…
Browse files Browse the repository at this point in the history
…lls (#504)
  • Loading branch information
sanuradhag authored Jun 22, 2024
1 parent 3c7187b commit 77a7566
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/plugins/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,16 +231,25 @@ const mutableMarkdownSignal$ = Signal<string>((r) => {

// import configuration
/** @internal */
/**
* Contains the currently registered import vistors.
* @group Core
*/
export const importVisitors$ = Cell<MdastImportVisitor<Mdast.Nodes>[]>([])
/** @internal */
/**
* Contains the currently registered lexical nodes.
* @group Core
*/
export const usedLexicalNodes$ = Cell<Klass<LexicalNode>[]>([])
export const syntaxExtensions$ = Cell<MarkdownParseOptions['syntaxExtensions']>([])
/** @internal */
export const mdastExtensions$ = Cell<NonNullable<MarkdownParseOptions['mdastExtensions']>>([])
/** @internal */
export const usedLexicalNodes$ = Cell<Klass<LexicalNode>[]>([])

// export configuration
/** @internal */
/**
* Contains the currently registered export vistors.
* @group Core
*/
export const exportVisitors$ = Cell<NonNullable<LexicalConvertOptions['visitors']>>([])
/** @internal */
export const toMarkdownExtensions$ = Cell<NonNullable<LexicalConvertOptions['toMarkdownExtensions']>>([])
Expand Down

0 comments on commit 77a7566

Please sign in to comment.