Plugin screenshot thumbnail 1/2
Plugin screenshot thumbnail 2/2

Better Markdown in Craft.

Wahlberg makes writing Markdown in Craft better. What it does depends on your Craft version:

  • Craft 5: Wahlberg 1 is a complete Markdown field, with a GitHub-style editor.
  • Craft 6: Craft now has a Markdown field of its own, so Wahlberg 2 adds to that field rather than replacing it.

Composer installs the right version for your Craft.

🚧 Wahlberg 1 and 2 are in beta.


Craft 6: Wahlberg 2

Wahlberg 2 works with Craft’s own Markdown field. There’s no new field type to set up, and everything below works on the Markdown fields you already have.

  • Snippets. Type / to insert a block of Markdown you’ve set up, such as a callout, a figure or a table. Snippets can have tab stops to fill in, and can be limited to certain fields. Set them up in the plugin settings or in a config file.
  • @ links. Type @ and part of an entry’s title to link to it. The link is a reference tag, so it keeps working if the entry’s slug changes. It follows each field’s link settings.
  • The Wahlberg flavour. A new Markdown Flavor option: GitHub-Flavored Markdown, plus GitHub’s > [!NOTE] alerts, footnotes, ==highlights== and an id on every heading.
  • Template helpers. Twig filters for a table of contents, an excerpt, reading time and plain text, plus the Markdown with its reference tags resolved, for an llms.txt.
  • Writing checks. Warnings under the field for images without alt text, skipped heading levels, level 1 headings and links to entries that aren’t live. They never stop a save, and each can be turned off.

Upgrading from Wahlberg 1

When you update, Wahlberg 1.x fields become Craft’s Markdown field. Their content isn’t touched, and their settings carry across wherever Craft’s field has an equivalent. Run php artisan wahlberg:convert-fields --dry-run first to see what will change.


Craft 5: Wahlberg 1

A Markdown field type with a Write tab, a Preview tab and a formatting toolbar.

  • Write and preview. Stores the Markdown as typed and previews it on the server, with the same parser as Craft’s |md filter. The output runs through HTML Purifier by default.
  • Syntax highlighting. Markdown is coloured as you type, with no editor library to load.
  • Toolbar. Headings, emphasis, quotes, code, lists, links and entry and asset pickers. It folds into a menu when space is short, or can float over the selection.
  • Reference tags. The entry and asset pickers write reference tags, so links keep working when a slug changes or a file is replaced.
  • Snippets. Type / for the element pickers and your own snippets, with tab stops and defaults.
  • Keyboard shortcuts for formatting, links, pickers, snippets and switching to the preview.
  • Per-field settings for the flavour, toolbar, line length, size, character limits and counts.
  • Beyond the field: GraphQL support, plus Twig and PHP helpers for Markdown outside a field.
Installation Instructions

To install this plugin, copy the command above to your terminal.

Reviews

This plugin doesn't have any reviews.

Active Installs
6
Version
1.0.0-beta.7
License
MIT
Compatibility
Craft 5, Craft 6
Last release
November 13, 2026
Activity (30 days)
1
Closed Issues
0
Open Issues
1
Merged PRs
0
Open PRs