Releases: prismicio-community/php-kit
Releases · prismicio-community/php-kit
1.0.18
1.0.17
1.0.11: Merge pull request #75 from mhor/patch-2
Bug fixes
- [#74] Fix UTF-8 bug in span resolving
1.0.10
1.0.9
1.0.8
1.0.7
1.0.5-beta
Features
- linkedDocuments are now exposed.
Document.getLink()
was missing from the kit
Bugfix
- APC cache introduced in previous version didn't work (there was no wrong behavior, simply no caching); it does now.
- Bug with HTML serialization of lists when it was at the beginning of a structured text (the first list's element would be out of the
<ul>
or<ol>
tag). - Support for both FileLinks and ImageLinks.
- Removed the
$level
attribute inPreformattedBlock
, which wasn't used.
Changes
- When linkResolver returned
null
, the HTML serialization used to write<a href="">the text</a>
; now it returnsthe text
(doesn't include the useless tag). Therefore, if you have a reason to consider your link invalid in your linkResolver, you can make it return null, and the tag won't happen. As a result, we advise that you return null if the link "isBroken" is at true for instance, although you don't have too (you can also choose to throw an error, or link to a page you want instead, etc.)