PHPackages                             spatie/filament-markdown-editor - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. spatie/filament-markdown-editor

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

spatie/filament-markdown-editor
===============================

A markdown editor for Filament with code highlighting and image uploads

2.0.1(1y ago)15042.8k↓53.2%173MITJavaScriptPHP ^8.1CI passing

Since Oct 12Pushed 1w ago3 watchersCompare

[ Source](https://github.com/spatie/filament-markdown-editor)[ Packagist](https://packagist.org/packages/spatie/filament-markdown-editor)[ Docs](https://github.com/spatie/filament-markdown-editor)[ RSS](/packages/spatie-filament-markdown-editor/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (10)Dependencies (9)Versions (18)Used By (3)

A markdown editor with code highlighting for Filament
=====================================================

[](#a-markdown-editor-with-code-highlighting-for-filament)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d83dc866036b3958e5882f2e7c7b07f0f3b5ba53cc0400cefe25f6c707711e10/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7370617469652f66696c616d656e742d6d61726b646f776e2d656469746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/filament-markdown-editor)[![run-tests](https://github.com/spatie/filament-markdown-editor/actions/workflows/run-tests.yml/badge.svg)](https://github.com/spatie/filament-markdown-editor/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/639e269dd3a5f19f0af5addbc3ac33f096da534b1e453a8cf2e3cb10c37a6bfa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7370617469652f66696c616d656e742d6d61726b646f776e2d656469746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/filament-markdown-editor)

This package contains a Markdown editor form field to be used in [Filament](https://filamentphp.com). The editor supports image uploads and will automatically highlight code snippets.

[![screenshot](https://github.com/spatie/filament-markdown-editor/raw/main/docs/editor.jpg?raw=true)](https://github.com/spatie/filament-markdown-editor/blob/main/docs/editor.jpg?raw=true)

The Markdown field is powered by [EasyMDE](https://github.com/Ionaru/easy-markdown-editor).

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/ba0b2fa0b1c2eba120acedda7cb7d2e8aa81dd7ba9fd933f0c5e92aaa8db8236/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f66696c616d656e742d6d61726b646f776e2d656469746f722e6a70673f743d31)](https://spatie.be/github-ad-click/filament-markdown-editor)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require spatie/filament-markdown-editor
```

Usage
-----

[](#usage)

In the `form` function of your Filament resource, you can use make use of the `Spatie\FilamentMarkdownEditor\MarkdownEditor` just like any other form element.

Optionally, you can tack on the standard Filament methods `fileAttachmentsDisk`, `fileAttachmentsVisibility`, ... to configure the image uploads.

```
use Spatie\FilamentMarkdownEditor\MarkdownEditor;

public static function form(Form $form): Form
{
    return $form
        ->schema([
            // other fields ...

            MarkdownEditor::make('text')
                ->fileAttachmentsDisk('admin-uploads')
                ->fileAttachmentsVisibility('public')
                ->required(),
        ]);
}
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Rias Van der Veken](https://github.com/riasvdv)
- [Dan Harrin](https://github.com/danharrin)
- [Freek Van der Herten](https://github.com/freekmurze)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

55

—

FairBetter than 97% of packages

Maintenance73

Regular maintenance activity

Popularity45

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 54.8% 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 ~66 days

Recently: every ~167 days

Total

14

Last Release

498d ago

Major Versions

0.0.3 → 1.0.02022-10-13

v1.x-dev → 2.0.02024-04-01

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7535935?v=4)[Spatie](/maintainers/spatie)[@spatie](https://github.com/spatie)

---

Top Contributors

[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (91 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (25 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (18 commits)")[![riasvdv](https://avatars.githubusercontent.com/u/3626559?v=4)](https://github.com/riasvdv "riasvdv (9 commits)")[![dinandmentink](https://avatars.githubusercontent.com/u/17289887?v=4)](https://github.com/dinandmentink "dinandmentink (8 commits)")[![danharrin](https://avatars.githubusercontent.com/u/41773797?v=4)](https://github.com/danharrin "danharrin (4 commits)")[![Nielsvanpach](https://avatars.githubusercontent.com/u/10651054?v=4)](https://github.com/Nielsvanpach "Nielsvanpach (3 commits)")[![AlexVanderbist](https://avatars.githubusercontent.com/u/6287961?v=4)](https://github.com/AlexVanderbist "AlexVanderbist (2 commits)")[![JamesHemery](https://avatars.githubusercontent.com/u/23323941?v=4)](https://github.com/JamesHemery "JamesHemery (2 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (2 commits)")[![ashleyhindle](https://avatars.githubusercontent.com/u/454975?v=4)](https://github.com/ashleyhindle "ashleyhindle (1 commits)")[![Fot0n](https://avatars.githubusercontent.com/u/6566055?v=4)](https://github.com/Fot0n "Fot0n (1 commits)")

---

Tags

filamentlaravelmarkdownphpspatielaravelfilament-markdown-editor

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/spatie-filament-markdown-editor/health.svg)

```
[![Health](https://phpackages.com/badges/spatie-filament-markdown-editor/health.svg)](https://phpackages.com/packages/spatie-filament-markdown-editor)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k102.4M1.4k](/packages/spatie-laravel-permission)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[stephenjude/filament-jetstream

A Laravel starter kit built with Filament inspired by Jetstream.

17760.2k3](/packages/stephenjude-filament-jetstream)[stephenjude/filament-debugger

About

104162.2k2](/packages/stephenjude-filament-debugger)[spatie/laravel-passkeys

Use passkeys in your Laravel app

471890.7k39](/packages/spatie-laravel-passkeys)

PHPackages © 2026

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