PHPackages                             daun/statamic-bard-mutators - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. daun/statamic-bard-mutators

ActiveLibrary

daun/statamic-bard-mutators
===========================

A collection of plugins for the Statamic Bard Mutator addon

1.3.0(2mo ago)055MITPHPPHP ^8.1CI failing

Since Mar 13Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/daun/statamic-bard-mutators)[ Packagist](https://packagist.org/packages/daun/statamic-bard-mutators)[ Docs](https://github.com/daun/statamic-bard-mutators)[ RSS](/packages/daun-statamic-bard-mutators/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (9)Versions (7)Used By (0)

🧱 Statamic Bard Mutators
========================

[](#-statamic-bard-mutators)

A collection of mutators for transforming [Statamic Bard](https://statamic.dev/fieldtypes/bard) content.

All mutators are implemented as plugins for the [Bard Mutator Addon](https://statamic.com/addons/jacksleight/bard-mutator).

Installation
------------

[](#installation)

Install the package via composer:

```
composer require daun/statamic-bard-mutators
```

Registration
------------

[](#registration)

Register any mutators you want to use from the `Mutator` facade. Options can be passed as arguments to the constructor. You can read more about [class-based mutator plugins](https://jacksleight.dev/docs/bard-mutator/plugins#class-based-plugins)in the addon readme.

```
use JackSleight\StatamicBardMutator\Facades\Mutator;
use Daun\BardMutators\MarkExternalLinks;

Mutator::plugin(new MarkExternalLinks());
```

Mutators
--------

[](#mutators)

### Mark External Links

[](#mark-external-links)

Mark external links with `target="_blank"` and `rel="external"`.

```

External link

External link
```

```
new MarkExternalLinks();

// Optionally customize the `target` and `rel` attributes
new MarkExternalLinks(
    target: '_blank',
    rel: 'noopener noreferrer'
);
```

### Mark Asset Links

[](#mark-asset-links)

Mark links to assets with `download="filename.ext"`.

```

Download video

Download video
```

```
new MarkAssetLinks();
```

### Generate Heading IDs

[](#generate-heading-ids)

Adds an `id` attribute to headings based on their content.

```

Heading

Heading
```

```
new GenerateHeadingIds();

// Customize heading levels to generate IDs for and add a prefix to generated IDs
new GenerateHeadingIds(
    levels: [2, 3],
    prefix: 'section-'
);
```

### Semantic Blockquotes

[](#semantic-blockquotes)

Wraps blockquotes in a `figure` element and moves the author/source into a `figcaption` element.

```

    Quote
    — Author

        Quote

        Author

```

```
new SemanticBlockquotes();

// Optionally add a class to the figure element
new SemanticBlockquotes(
    class: 'quote'
);
```

Wrap Tables
-----------

[](#wrap-tables)

Wraps tables in a `div` element to allow for horizontal scrolling on smaller screens.

```

...

    ...

```

```
new WrapTables();

// Optionally use a custom tag or add a class to the wrapper element
new WrapTables(
    tag: 'section',
    class: 'table'
);
```

Remove List Item Paragraphs
---------------------------

[](#remove-list-item-paragraphs)

Remove the paragraphs that tiptap automatically adds inside list items.

```

    List item

    List item

```

```
new RemoveListItemParagraphs();
```

License
-------

[](#license)

[MIT](https://opensource.org/licenses/MIT)

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance83

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~67 days

Recently: every ~84 days

Total

6

Last Release

86d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/31ac2b3787ded290b6bac87b937abf4f267483e4da64731bfb256a942bb669ca?d=identicon)[daun](/maintainers/daun)

---

Top Contributors

[![daun](https://avatars.githubusercontent.com/u/22225348?v=4)](https://github.com/daun "daun (17 commits)")

---

Tags

bardpluginsstatamicstatamicbard

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/daun-statamic-bard-mutators/health.svg)

```
[![Health](https://phpackages.com/badges/daun-statamic-bard-mutators/health.svg)](https://phpackages.com/packages/daun-statamic-bard-mutators)
```

###  Alternatives

[statamic/statamic

Statamic

824170.4k](/packages/statamic-statamic)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)[visuellverstehen/statamic-classify

A useful helper to add CSS classes to all HTML tags generated by the bard editor.

20116.8k](/packages/visuellverstehen-statamic-classify)[marcorieser/statamic-livewire

A Laravel Livewire integration for Statamic.

2381.5k10](/packages/marcorieser-statamic-livewire)[aerni/livewire-forms

A Statamic forms framework powered by Laravel Livewire

2912.8k](/packages/aerni-livewire-forms)[reachweb/statamic-livewire-filters

Livewire filters for Statamic collections.

1710.5k](/packages/reachweb-statamic-livewire-filters)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
