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

Expose link validation API in DocumentCursor #162

Closed
jenshalm opened this issue Oct 10, 2020 · 0 comments
Closed

Expose link validation API in DocumentCursor #162

jenshalm opened this issue Oct 10, 2020 · 0 comments
Milestone

Comments

@jenshalm
Copy link
Contributor

Currently the validation logic is mostly hidden inside Laika's built-in rewrite rules. However, users might also create new nodes that contain links in a directive or rewrite rule, and while DocumentCursor has all the data required to validate the link, repeating the logic for every use case would be a lot of boilerplate. It's also slow as link validation requires node traversal through a document to find a matching id for the link target, which is inefficient if results are not cached.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant