ivo-valchev/anchor-tags

🏷 This Bolt extension adds IDs to HTML elements for use as anchor tags.

Installs: 260

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 1

Open Issues: 0

Type:bolt-extension

1.0.3 2021-07-15 12:46 UTC

This package is auto-updated.

Last update: 2024-04-15 18:58:23 UTC


README

Author: Ivo Valchev

🏷 This Bolt extension adds IDs to HTML elements for use as anchor tags.

Installation:

composer require ivo-valchev/anchor-tags

Usage

See the ivovalchev-anchortags.yaml for all configuration options.

In addition, you can use the anchor_tags filter to add anchor tags to specific HTML, like so:

{% set html %}
<h2>Hi there</h2>
<p>I am some html.</p>
<strong>It only works on here.</strong>
{% endset %}

{{ html|anchor_tags }}

Running PHPStan and Easy Codings Standard

First, make sure dependencies are installed:

COMPOSER_MEMORY_LIMIT=-1 composer update

And then run ECS:

vendor/bin/ecs check src