diff --git a/packages/lexical-markdown/src/MarkdownTransformers.ts b/packages/lexical-markdown/src/MarkdownTransformers.ts index 2a4fa5d5cf0..530899e2813 100644 --- a/packages/lexical-markdown/src/MarkdownTransformers.ts +++ b/packages/lexical-markdown/src/MarkdownTransformers.ts @@ -113,7 +113,7 @@ export type MultilineElementTransformer = { * Whether the end match is optional. If true, the end match is not required to match for the transformer to be triggered. * The entire text from regexpStart to the end of the document will then be matched. */ - optional?: true; + optional?: boolean; regExp: RegExp; }; /**