filamentphp / filament

A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS.
https://filamentphp.com
MIT License
19.4k stars 2.97k forks source link

Added markdown extensions support #14419

Open Plytas opened 1 month ago

Plytas commented 1 month ago

Description

As proposed in https://github.com/filamentphp/filament/discussions/1294#discussioncomment-10812259, this PR adds support for markdown extensions.

One important change - HTML is sanitized before being passed to markdown() function. This still sanitizes user input, but allows markdown to produce "unsafe" HTML like <iframe>.

I'm starting this as draft PR to receive feedback. I'll be able to update docs once desired API is confirmed. Also, let me know if this needs tests and point me to an example I can follow.

Visual changes

No visual changes.

Functional changes

Plytas commented 1 month ago

Ping @danharrin @ryangjchandler.