Download the PHP package birdcar/markdown-filament without Composer
On this page you can find all versions of the php package birdcar/markdown-filament. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download birdcar/markdown-filament
More information about birdcar/markdown-filament
Files in birdcar/markdown-filament
Package markdown-filament
Short Description Filament integration for Birdcar Flavored Markdown
License MIT
Informations about the package markdown-filament
birdcar/markdown-filament
Filament v4 integration for Birdcar Flavored Markdown (BFM).
Provides drop-in replacements for Filament's markdown components that render through the BFM pipeline instead of the default CommonMark config.
Requirements
- PHP 8.2+
- Filament 4.x
birdcar/markdown-laravel(pulled in automatically)
Installation
The service provider is auto-discovered. BFM styles are automatically registered as a Filament asset.
Components
BfmEditor (Form field)
Drop-in replacement for MarkdownEditor with a server-rendered BFM preview.
The editor adds a Preview/Edit toggle button above the EasyMDE editor. Preview is rendered server-side through Str::bfm() so it matches your actual output exactly.
All standard MarkdownEditor methods work (file attachments, toolbar buttons, min/max height, etc.).
BfmTextColumn (Table column)
Drop-in replacement for TextColumn that renders markdown content as BFM HTML.
BfmTextEntry (Infolist entry)
Drop-in replacement for TextEntry that renders markdown content as BFM HTML.
Publishable views
Publishes the Blade views to resources/views/vendor/bfm-filament/. Only do this if you need to customize the editor markup.
Gotchas
- Filament v4 only. This package uses
callSchemaComponentMethodand#[ExposedLivewireMethod]which are v4 APIs. It will not work with Filament v3. - Preview is server-rendered. Each preview toggle makes a Livewire round-trip. The
previewDebounceoption only applies if you wire up live preview (the default is toggle-based, not live). - BFM styles load automatically. The service provider registers the CSS via
FilamentAsset::register(). You don't need to add@bfmStylesin Filament panels — it's handled for you. BfmTextColumnandBfmTextEntrycall->html()internally. Don't chain->html()again; it's already set up.- The Laravel package must be configured. Render profile and resolvers are controlled by
config/bfm.phpfrom the Laravel package. The Filament package reads from the same converter singleton.
Development
Tests use Orchestra Testbench with Filament's SchemasServiceProvider. The composer.json includes path repositories pointing to both ../../ (core) and ../laravel (Laravel package) for monorepo resolution.
All versions of markdown-filament with dependencies
birdcar/markdown-laravel Version self.version
filament/filament Version ^4.0