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
[x] Code style has been fixed by running the composer cs command.
[ ] Changes have been tested to not break existing functionality.
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
composer cs
command.