Skip to content

Commit

Permalink
rename 'multilineElement' to 'multiline-element'
Browse files Browse the repository at this point in the history
  • Loading branch information
potatowagon committed Sep 10, 2024
1 parent f7211e2 commit b2467a2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/lexical-markdown/flow/LexicalMarkdown.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export type MultilineElementTransformer = {
linesInBetween: Array<string> | null,
isImport: boolean,
) => boolean | void;
type: 'multilineElement';
type: 'multiline-element';
};

export type TextFormatTransformer = $ReadOnly<{
Expand Down
2 changes: 1 addition & 1 deletion packages/lexical-markdown/src/MarkdownShortcuts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ export function registerMarkdownShortcuts(
if (
type === 'element' ||
type === 'text-match' ||
type === 'multilineElement'
type === 'multiline-element'
) {
const dependencies = transformer.dependencies;
for (const node of dependencies) {
Expand Down
4 changes: 2 additions & 2 deletions packages/lexical-markdown/src/MarkdownTransformers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export type MultilineElementTransformer = {
*/
isImport: boolean,
) => boolean | void;
type: 'multilineElement';
type: 'multiline-element';
};

export type TextFormatTransformer = Readonly<{
Expand Down Expand Up @@ -391,7 +391,7 @@ export const CODE: MultilineElementTransformer = {
})(rootNode, children, startMatch, isImport);
}
},
type: 'multilineElement',
type: 'multiline-element',
};

export const UNORDERED_LIST: ElementTransformer = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const MDX_HTML_TRANSFORMER: MultilineElementTransformer = {
}
return false; // Run next transformer
},
type: 'multilineElement',
type: 'multiline-element',
};

describe('Markdown', () => {
Expand Down

0 comments on commit b2467a2

Please sign in to comment.