Version 3.4.0
March 15, 2024
- Added Craft 5 compatibility.
Version 3.2.0
January 9, 2023
- Added the
@anchors
GraphQL directive. (#18)
Version 3.0.0
May 3, 2022
Added
- Added Craft 4 compatibility.
Changed
- The
parser
component can now be configured viacraft\services\Plugins::$pluginConfigs
.
Version 2.3.1
February 25, 2022
Fixed
- Fixed an error that could occur if the
|anchors
filter was used on anull
variable. (#13)
Version 2.3.0
April 15, 2021
Added
- Added the
anchorLinkPosition
setting. (#12)
Changed
- Anchors now requires Craft CMS 3.6 or later.
Version 2.2.0
February 23, 2019
Changed
- The
|anchors
filter now converts non-ASCII characters to ASCII when generating anchor names. (#9) - The
|anchors
filter now has alanguage
argument, which can be set to specify which language the ASCII character mappings should be pulled from. (The current site language is used by default.)
Version 2.1.1
February 4, 2019
Changed
- The
|anchors
filter is now available to templates rendered on console requests. (#8)
Version 2.1.0
July 16, 2018
Changed
- Anchors now use the
id
attribute instead ofname
. (#4)
Version 2.0.3
December 4, 2017
Changed
- Loosened the Craft CMS version requirement to allow any 3.x version.
Version 2.0.2
September 28, 2017
Changed
- The plugin no longer forces Twig to be loaded on requests where it wasn’t needed.
Fixed
- Fixed a bug where HTML tags within headings were not getting stripped for the anchor link
title
text. (#5)
Version 2.0.1
September 15, 2017
Added
- Craft 3 Beta 27 compatibility.
Version 2.0.0
May 17, 2017
Added
- Added support for Craft 3.
Version 1.3.1
July 3, 2016
Fixed
- Fixed a bug where non-breaking spaces within headings could result in named anchors with “nbsp” in the name.
Version 1.3.0
July 3, 2016
Added
- Added
anchorClass
,anchorLinkClass
,anchorLinkText
, andanchorLinkTitleText
config settings. - The plugin now creates separate named anchor elements that are placed before the headings, rather than adding an id attribute to the headings.
Version 1.2.0
December 20, 2015
Changed
- Updated to take advantage of new Craft 2.5 plugin features.
Version 1.1.0
November 28, 2014
Added
- Added AnchorsService, available globally from craft()->anchors, with two public methods,
parseHtml()
andgenerateAnchorName()
.
Version 1.0.0
September 23, 2013
Initial release.