All notable changes to this project will be documented in this file.
This project adheres to Semantic Versioning.
- #87 Fixed a bug where a line break preceding a list containing inline attributes results in improper HTML formatting for next paragraphs.
- #84 Allow align
left
as possible value.
Please be aware that this release may impact the way Quill data is displayed in your frontend. Checkout the upgrade document for more details.
- #80 Add missing background color listener (In this update, we have introduced a change where background color information from Quill JSON is now extracted and applied as the background color. This change may result in unexpected behavior if you had background color information present in your documents but it was not rendered correctly in previous versions. see upgrade document
- #78 Fixed a bug where lists with empty contents would break all output.
- #77 Allow method chaining for
registerListener()
andoverwriteListener()
. - #76 Addded php 8.2 for unit tests
- #74 Fixed missing support for nested lists
- #73 More automation and testing with rector and auto commit on PR's for csfixer and rector.
- #71 Added image width and height attributes to the image tag if available.
- #72 Raised from phpstan level 5 to 6
- #68 Deprecated the magical getter
$pick->$name
innadar\quill\Pick
class, use$pick->optionValue($name)
instead. - #64 Replaced deprecated public $input property in
Line
with getter and setter methodsgetLine()
andsetLine($input)
. - #63 Removed deprecated methods
loadBuiltinListeneres()
andrenderListeneres()
. - #62 Prettify the html output a little by adding newlines after every block level element. If you have custom listeners which call
BlockListener->wrapElement()
this will be added for your custom listeners as well, otherwise you'll need to add the newlines yourself.
This release contains breaks which might affect your application. Checkout the upgrade document for more details.
- #60 Changed the behavior of
nadar\quill\listener\Link
. Property$wrapper
has been removed and replaced by$wrapperOpen
,$wrapperMiddle
and$wrapperClose
. - #61 Official dropped PHP 7.1 support added PHP 8.1 instead.
- #58 Renamed misspelled method
loadBuiltinListeneres()
toloadBuiltinListeners()
andrenderListeneres()
torenderListeners()
. The old methods are still available for backwards compatibility, but deprecated and will be removed in 3.0.
- #56 Provide new method to override existing listeners with
overwriteListener()
.
- #53 Lists listener, check for type being an array for compatibility with Vanilla Forums.
- #51 Fixed issue where images wrapped in italics renders as text instead of showing the image.
- #49 Added Code Block Listener, generates
<pre><code>...</code></pre>
enclosed output.
- #48 PHP 8 compatibility.
- #42 Added PHP 8 Support.
- #43 Moved CI from Travis to GitHub Actions. Added PHP 8 version in Test Scenario.
- #41 Add option to configure Embed Video
allow
option.
- #32 Added new
wrapElement
method to simplify building block listeners. - #30 List opening tag process has been simplified in order to support single bullet lists.
- #31 Add support for align attribute.
- Add override functionality to links, allowing to customise their wrapper.
- Add inline element to handle script attribute.
- #25 Ensure that empty heading listeners won't destroy all upcoming elements.
- #23 Add inline element to handle font attribute.
This release contains breaks which might affect your application. Checkout the upgrade document for more details.
- #18 Enable
escapeInput
option by default in order to increase security.
- #13 Fixed bug when lists are interrupted with block level elements (e.g. videos)
- #16 Fixed bug with sorting index of inline elements when using prepend.
- #15 Fixed bug when header contains (partial) formatting and line before header contains formatting
- #12 Fixed bug when using quill parser on windows platforms.
- Added new debugInfo option for lines
- Added new behavior for hasNewline (which is now more consistent according to delta input)
- #8 Fixed issue with UL/OL list elements if only one element is inside the list.
- #7 Makes sure input and attributes from delta is escaped before mixing it with html. Listeners should use
$line->getInput()
instead of$line->input
to read input. This will properly escape if it is not done already. Values from attributes should be passed through$line->getLexer()->escape()
. See the Color listener for an example of both. Obviously, escaping should be skipped in case a listener is meant to output raw html.
- #6 Fixed bug in exception messaged. Added unit tests and improved message.
- #5 Fixed a bug where paragraphs with attributes where not rendered (color attribute). Added new parameter to disable the rendering of attributes.
- Added Image-Tag for image output.
- Improve Video-Tag output (Remove frameborder, use youtube embed code allow tag).
- First stable API release.