Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: incorrect ordering of links #339

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

imanpalsingh
Copy link

The addLinksFromRichTextNode crawls through the nodes and always picks up the last item in that array. This causes links to be entity links to be generated in the incorrect order.

Instead of taking the last node, the first one is picked up to parse the nodes in the order they appeared in the rich text.

The addLinksFromRichTextNode crawls through the nodes and always picks
up the last item in that array. This causes links to be entity links to
be generated in the incorrect order. Instead of taking the last node,
the first one is picked up to parse the nodes in the order they appeared
in the rich text
@imanpalsingh imanpalsingh force-pushed the fix-wrong-order-of-links branch from 5ad501f to b44024f Compare June 24, 2022 12:56
@imanpalsingh imanpalsingh changed the title Fix incorrect ordering of links fix: incorrect ordering of links Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants