{"id":19324977,"url":"https://github.com/spatie/filament-markdown-editor","last_synced_at":"2025-05-15T23:07:42.380Z","repository":{"id":61235245,"uuid":"549546006","full_name":"spatie/filament-markdown-editor","owner":"spatie","description":"A markdown editor for Filament with code highlighting and image uploads","archived":false,"fork":false,"pushed_at":"2025-05-12T22:40:14.000Z","size":719,"stargazers_count":143,"open_issues_count":0,"forks_count":15,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-12T23:32:17.972Z","etag":null,"topics":["filament","laravel","markdown","php"],"latest_commit_sha":null,"homepage":"https://spatie.be","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spatie.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-11T10:56:54.000Z","updated_at":"2025-05-12T22:40:11.000Z","dependencies_parsed_at":"2024-04-29T23:26:45.655Z","dependency_job_id":"eeab8b27-6495-4e18-9359-871eb4ec4655","html_url":"https://github.com/spatie/filament-markdown-editor","commit_stats":{"total_commits":73,"total_committers":8,"mean_commits":9.125,"dds":0.4383561643835616,"last_synced_commit":"e5672a588e0ae6cd33abf3fe07ad230a1971ad72"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":"spatie/package-skeleton-laravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatie%2Ffilament-markdown-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatie%2Ffilament-markdown-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatie%2Ffilament-markdown-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatie%2Ffilament-markdown-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spatie","download_url":"https://codeload.github.com/spatie/filament-markdown-editor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254436948,"owners_count":22070947,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["filament","laravel","markdown","php"],"created_at":"2024-11-10T02:08:11.906Z","updated_at":"2025-05-15T23:07:36.612Z","avatar_url":"https://github.com/spatie.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A markdown editor with code highlighting for Filament\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/spatie/filament-markdown-editor.svg?style=flat-square)](https://packagist.org/packages/spatie/filament-markdown-editor)\n[![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)\n[![Total Downloads](https://img.shields.io/packagist/dt/spatie/filament-markdown-editor.svg?style=flat-square)](https://packagist.org/packages/spatie/filament-markdown-editor)\n\nThis 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.\n\n![screenshot](https://github.com/spatie/filament-markdown-editor/blob/main/docs/editor.jpg?raw=true)\n\nThe Markdown field is powered by [EasyMDE](https://github.com/Ionaru/easy-markdown-editor).\n\n## Support us\n\n[\u003cimg src=\"https://github-ads.s3.eu-central-1.amazonaws.com/filament-markdown-editor.jpg?t=1\" width=\"419px\" /\u003e](https://spatie.be/github-ad-click/filament-markdown-editor)\n\nWe 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).\n\nWe 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).\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require spatie/filament-markdown-editor\n```\n\n## Usage\n\nIn the `form` function of your Filament resource, you can use make use of the `Spatie\\FilamentMarkdownEditor\\MarkdownEditor` just like any other form element.\n\nOptionally, you can tack on the standard Filament methods `fileAttachmentsDisk`, `fileAttachmentsVisibility`, ... to configure the image uploads.\n\n```php\nuse Spatie\\FilamentMarkdownEditor\\MarkdownEditor;\n\npublic static function form(Form $form): Form\n{\n    return $form\n        -\u003eschema([\n            // other fields ...\n\n            MarkdownEditor::make('text')\n                -\u003efileAttachmentsDisk('admin-uploads')\n                -\u003efileAttachmentsVisibility('public')\n                -\u003erequired(),\n        ]);\n}\n```\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [Rias Van der Veken](https://github.com/riasvdv)\n- [Dan Harrin](https://github.com/danharrin)\n- [Freek Van der Herten](https://github.com/freekmurze)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspatie%2Ffilament-markdown-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspatie%2Ffilament-markdown-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspatie%2Ffilament-markdown-editor/lists"}