All notable changes to this project will be documented in this file.
This project adheres to Semantic Versioning.
- #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.