prismicio/javascript-kit — pull request #9 by rudyrigot (2013-12-10 00:27:09+00:00)
Title: Full StructuredText.asHtml support

Problem: in the [latest commit](https://github.com/rudyrigot/javascript-kit/commit/69217ee1bdd2fa56235d4a759b07aca6ea2b61b8), I didn't find another solution than to change the signature of `asHtml` methods in the kit.

The reason: [`linkResolver` needs `ctx` passed onto it when it's called](https://github.com/prismicio/javascript-nodejs-lesbonneschoses/blob/master/prismic-configuration.js#L13). Therefore, by passing only the `linkResolver` and not `ctx` in `asHtml`, we are not able to call `linkResolver` later on!
(`linkResolver` is within `ctx`, so no need to pass anything else than `ctx`)

I'm open to other suggestions that wouldn't change the API kit, but I've scratched my head real hard on it, and I can't see any other one.