Full changelog for PHP Quill Renderer
v3.00.0 is an almost complete rewrite of v2.03.1, the new design is flexible and supports all the features of the previous versions without any blatant hacks, no more methods named checkLastItemClosed() or removeRedundantParentTags(), the renderer is simpler because it just needs to iterate over a Deltas array.
There was no change to the API. However, if you use it by calling the parser and renderer classes directly I renamed one method, \DBlackborough\Quill\Parser\HTML::content() is now \DBlackborough\Quill\Parser\HTML::deltas().
- Minor bug fix and test thanks to pdiveris (https://github.com/pdiveris), deals with null inserts.
- Updated README, feature list incorrect, added v3.0 and also added a message on v1/v2 development.
- Updated composer.json, added suggest for PHP7.2.
- Removed /example folder and updated .gitignore.
- Added deltas() method to Parser/HTML.php.
- Added parserLoaded() method to Render.php
- Reworked tests.
- Added additional paragraph tests.
Note: The CompositeTest::testMultipleParagraphsWithAttributes test fails, this will pass in version 3.0.
- Updated attribute support table in README.
- Removed redundant settings method.
- Removed redundant construct params.
- Removed commented out code
- Removed settings code, new parser/renderer should be created to change options.
- Refactoring, updated method names to better match the containing logic.
- Updated README, Quill attribute support.
- Organised tests by renderer type prior to markdown development.
- Removed settings tests, settings are being stripped, don't make any sense, better option is to create a new renderer.
- Removed ./idea/ from .gitignore, should be ignored globally, not locally.
- Switched to PHP 7.1 only.
- Updated library code, strict types etc.
- If a list follows text the generated HTML is invalid. [Bugfix] (Credit: Carlos https://github.com/sald19 for finding bug)
- Switched to preg_split, code was looking for two or more newlines but ever only splitting on two.
- Moved newline replacement to last possible step.
- Attribute incorrect for bullet list (Credit: Carlos https://github.com/sald19) [Bugfix]
- Only testing against 7.1 going forward.
- Added credits section to README.
- Added support for ordered and unordered lists.
- Updated README, notes on version 2.00.0
- Added support for paragraph breaks, converts double newlines from quill insert into a new p tag, the feature is not yet bulletproof, I need to take another look at my parser.
- Composer autoload definition updated.
- Added warnings to readme.
- I'm now only testing against PHP 7+. [Tests]
- Added tests for setting attributes. [Tests]
- Switched to PSR4
- Minor change to API if using Quill (Render) class, after the PSR4 change I didn't like Quill/Quill.
- Basic support for images (outputting the base64 directly via src="")
- Added the ability to set the HTML tag for the following Quill attributes, bold, italic, script, strike and underline. [Feature]
- Minor rework to Quill class to allow options to be set, parse() was being called before the new option value was being set.
- Updated readme, now shows direct usage example.
- HTML parser no longer checks against HTML tags directly (h1, h2 etc), uses tag type. [Bugfix]
- Added
assign
index to options array, no longer need to check HTML tag directly. [Bugfix] - Removed redundant code.
- I simplified the usage of renderer ready for additional output formats, instantiate Quill class to use renderer and then simply call render().
- I have finally moved to PHPUnit 6.
Note: The Quill class does not expose the ability to override options, that will be added in the future.
- I added support for headings. [Feature]
- I have had to remove all newline support, I need to rework my logic. [Regression]
- I have added support for sub and super script. [Feature]
- I have added support for links. [Feature]
- I have been busy refactoring, I have simplified how attributes are replaced.
- I have added additional tests.
- I have updated the README, example incorrect.
- I have updated all method documentation.
I got most of the way through adding basic support for lists and then stumbled on a problem, I need to rework how newlines are handled and tidy up the code, the code needs to become aware of block elements.
- Reworked rendering code.
- Added base class so additional rendering class can be developed, for example a markdown renderer.
- Newline correctly trimmed from final insert. [Bugfix]
- Initial release, converts delta inserts into HTML, support four attributes,
bold
,strike
,italic
andunderline
. The HTML tag to be used for each attribute can be set along with the attributes to use for newlines and paragraphs, defaults tobr
andp
.