- Added Craft 5 compatibility.
- Added the
useAdditionalTagToAnchorTo
config setting which allows you to opt out of a tag being added and used to link to, in favour of using heading's id. (#21) - Fixed a couple of URL formatting bugs around case sensitivity and punctuation. (#31)
- Added the
@anchors
GraphQL directive. (#18)
- Removed unnecessary tab spots. (#21)
- Fixed a bug where headings that spanned multiple lines were ignored. (#20)
- Added Craft 4 compatibility.
- The
parser
component can now be configured viacraft\services\Plugins::$pluginConfigs
.
- Removed unnecessary tab spots. (#21)
- Fixed a bug where headings that spanned multiple lines were ignored. (#20)
- Fixed an error that could occur if the
|anchors
filter was used on anull
variable. (#13)
- Added the
anchorLinkPosition
setting. (#12)
- Anchors now requires Craft CMS 3.6 or later.
- 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.)
- The
|anchors
filter is now available to templates rendered on console requests. (#8)
- Anchors now use the
id
attribute instead ofname
. (#4)
- Loosened the Craft CMS version requirement to allow any 3.x version.
- The plugin no longer forces Twig to be loaded on requests where it wasn’t needed.
- Fixed a bug where HTML tags within headings were not getting stripped for the anchor link
title
text. (#5)
- Craft 3 Beta 27 compatibility.
- Added support for Craft 3.
- Fixed a bug where non-breaking spaces within headings could result in named anchors with “nbsp” in the name.
- 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.
- Updated to take advantage of new Craft 2.5 plugin features.
- Added AnchorsService, available globally from craft()->anchors, with two public methods,
parseHtml()
andgenerateAnchorName()
.
Initial release.