Skip to content

Commit

Permalink
Undo wrong conflict resolvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Skalakid committed Jan 7, 2025
1 parent d1a0677 commit 5cc59de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/parseExpensiMark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,12 @@ function parseExpensiMark(markdown: string): MarkdownRange[] {
const tree = parseTokensToTree(tokens);
const [text, ranges] = parseTreeToTextAndRanges(tree);
if (text !== markdown) {
throw new Error(
console.error(
`[react-native-live-markdown] Parsing error: the processed text does not match the original Markdown input. This may be caused by incorrect parsing functions or invalid input Markdown.\nProcessed input: '${JSON.stringify(
text,
)}'\nOriginal input: '${JSON.stringify(markdown)}'`,
);
return [];
}

let splittedRanges = splitRangesOnEmojis(ranges, 'italic');
Expand Down

0 comments on commit 5cc59de

Please sign in to comment.