Skip to content

Commit

Permalink
[lexical-markdown] Bug Fix: add missing shouldPreserveNewLines to mar…
Browse files Browse the repository at this point in the history
…kdown flow (#6165)
  • Loading branch information
potatowagon authored May 23, 2024
1 parent 2dac7f5 commit 80398d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/lexical-markdown/flow/LexicalMarkdown.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,15 @@ declare export function $convertFromMarkdownString(
markdown: string,
transformers?: Array<Transformer>,
node?: ElementNode,
shouldPreserveNewLines?: boolean,
): void;

// TODO:
// transformers should be required argument, breaking change
declare export function $convertToMarkdownString(
transformers?: Array<Transformer>,
node?: ElementNode,
shouldPreserveNewLines?: boolean,
): string;

declare export var BOLD_ITALIC_STAR: TextFormatTransformer;
Expand Down

0 comments on commit 80398d0

Please sign in to comment.