Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

1.0.5

Pre-release
Pre-release

Choose a tag to compare

@rudyrigot rudyrigot released this 03 Feb 19:39
· 487 commits to master since this release

Potentially breaking changes

  • asHtml() used to be passed the linkResolver function; now it will have to expect a full ctx object that contains the linkResolver function, so that all of the context can be used to build links (for instance ctx.ref).
  • all linkResolver functions are also expected to receive two parameters, the context and the current document we're trying to resolve: linkResolver(ctx, doc). Previously, linkResolver(doc) was tolerated, but the underlying kit didn't know what to do with it when it was passed to it, in asHtml calls for instance.

Bugfixes

  • Calling SearchForm.query('') (with an empty string) used to generate an error 500, now it simply ignores the call, as should be.

New features

  • Full support of asHtml() on StructuredText, including embeds, lists and spans (strongs, ems, links).