Skip to content

Commit

Permalink
Fix replacing default element in undo history (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skalakid authored May 20, 2024
1 parent 2030589 commit c59787e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MarkdownTextInput.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ const MarkdownTextInput = React.forwardRef<TextInput, MarkdownTextInputProps>(
const processedMarkdownStyle = useMemo(() => {
const newMarkdownStyle = processMarkdownStyle(markdownStyle);
if (divRef.current) {
parseText(divRef.current, divRef.current.innerText, newMarkdownStyle);
parseText(divRef.current, divRef.current.innerText, newMarkdownStyle, null, false);
}
return newMarkdownStyle;
}, [markdownStyle, parseText]);
Expand Down

0 comments on commit c59787e

Please sign in to comment.