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

Feature/structuredtext linkresolver #19

Conversation

dohzya
Copy link
Contributor

@dohzya dohzya commented Feb 19, 2014

Should fix #18

The LinkResolver is now an object (with its own
class) thus it should not be used as a function.

Should fix prismicio-community#18
LinkResolver was only provided to DocumentLink, so
links nested in a StructuredText (for instance)
didn't receive it.
The LinkResolver can (and is) now used as a function,
so if an actual function is provided instead of it,
the code will code as expected.

The LinkResolver class is still useful:

  - to be used as an helper
  - because closures are not fully supported
@dohzya
Copy link
Contributor Author

dohzya commented Feb 20, 2014

This PR should now fixes #18 and #20.

@tremby
Copy link
Contributor

tremby commented Feb 20, 2014

Works perfectly for me. Thanks.

rudyrigot added a commit that referenced this pull request Feb 20, 2014
@rudyrigot rudyrigot merged commit 6037a99 into prismicio-community:master Feb 20, 2014
@dohzya dohzya deleted the feature/structuredtext-linkresolver branch March 4, 2014 16:15
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.

LinkResolver class usage
3 participants