rendering html iframe with markdown helper

i want to render the below html on my blade but the inlineMarkdown is not letting me.
<iframe class="w-full aspect-video" width="560" height="315" src="https://www.youtube.com/embed/uClPnQM4XQQ" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
<iframe class="w-full aspect-video" width="560" height="315" src="https://www.youtube.com/embed/uClPnQM4XQQ" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
this is how im rendering my blog post
{!! \Illuminate\Support\Str::inlineMarkdown($post->body) !!}
{!! \Illuminate\Support\Str::inlineMarkdown($post->body) !!}
is not letting me however i can use the tag <font> which is an old html4 tag, like this:
<font color="red">[good](https://google.com)</font>
<font color="red">[good](https://google.com)</font>
and gets rendered correctly and the link works. i was using a spatie-markdown package but it doesn't include a preview and the links work different. if im using filament to create the post how could i get that iframe to render correctly?
15 Replies
warpig
warpigOP2y ago
also, is there an option to color text? couldn't find anything on the plugins
awcodes
awcodes2y ago
#tiptap it’s not a markdown editor but it supports markdown shortcuts as you type. And while it doesn’t have a preview, it supports custom style sheets to make the editing close to your output. Might even be possible to use with #peek for iframe responsive previews.
warpig
warpigOP2y ago
how can i use the css there ?
awcodes
awcodes2y ago
It’s in the readme.
warpig
warpigOP2y ago
ok which plugin or which method do you suggest i use for markdown
awcodes
awcodes2y ago
Probably the spatie one.
warpig
warpigOP2y ago
yea it just gets weird with the links they need a own separate line
awcodes
awcodes2y ago
Or simple mde but you’d have to make your own plugin for it until v3. The markdown editor in v3 is going to be a lot better.
warpig
warpigOP2y ago
can't wait
Filament
Filament2y ago
Beta: 21d 20h 03m 50s Release: 33d 14h 03m 50s
warpig
warpigOP2y ago
hopefully they added html functionality thanks
awcodes
awcodes2y ago
It’s a whole new editor. Still not a full wysiwyg, but better than the current one.
warpig
warpigOP2y ago
tip tap, amazing thanks for recommending 😄
awcodes
awcodes2y ago
I’m kinda biased though. Lol.
warpig
warpigOP2y ago
yea ;-D awesome!
Want results from more Discord servers?
Add your server