Supercharge Markdown with Laravel

  Рет қаралды 9,260

Aaron Francis

Aaron Francis

Күн бұрын

Пікірлер: 50
@TravisNorthcutt
@TravisNorthcutt 9 ай бұрын
I am unreasonably happy that you said "I'm the captain now" for (at least) the second time in a video 👏👏👏
@aarondfrancis
@aarondfrancis 9 ай бұрын
The second, and not the last 😂
@TotalImmort7l
@TotalImmort7l 6 ай бұрын
You might be one of the best and most entertaining teachers on the platform, other than Fireship.
@Hyp3r8Sniper
@Hyp3r8Sniper 9 ай бұрын
Absolutely love how concise and light-hearted your content is, thankyou for valuing our attention!
@aarondfrancis
@aarondfrancis 9 ай бұрын
Thank you so much
@rupadana_
@rupadana_ 2 ай бұрын
what a great explanation dude 👍
@Dero02
@Dero02 9 ай бұрын
The way you narrate is eerily similar to how I actually talk to myself when coding. 😅
@Cyber_Lanka
@Cyber_Lanka 6 ай бұрын
Hey Aron I just saw you got laid off from PlanetScale. I honestly can't believe it since you and your enthusiasm is one of the biggest reasons for its boom in popularity. Please don't stop making content and I hope you will find a much better place for your next employment. I wish you all the best.
@BreezyPixels
@BreezyPixels 9 ай бұрын
Thanks for amazing video! Was actually dreading trying to figure out how to setup markdown to look nice this week, and now im excited :D
@cptive
@cptive 9 ай бұрын
Great video! Regarding the safe rendering; I also use Markdown + Blade, however instead of doing it the way you did, I decided to use the package by spatie "sheets". Never thought of the Blade code issue, so I decided to check. And sheets seems to handle it for me already! So perhaps a good choice for some people if you don't mind relying on a 3rd party package
@aarondfrancis
@aarondfrancis 9 ай бұрын
Oh nice! Of course Spatie has a package for it. Does it escape Blade for you?
@cptive
@cptive 9 ай бұрын
@@aarondfrancis Looks like it! Created a markdown file with some codeblocks with blade directives inside them and it worked fine, lovely video btw. Your approach to these things is always very informative to me 🤍❤️
@aarondfrancis
@aarondfrancis 9 ай бұрын
@@cptive thank you! ❤️
@j_hull
@j_hull 8 ай бұрын
@@cptive any chance you have a working example? got sheets all set up and works great - but no joy on the blade directives in code blocks
@wadecodez
@wadecodez 26 күн бұрын
my advice is use more than one layer of sanitization/purification. you'd be surprised what a rogue character or emoji can do. shout out to those who have localization and markdown with significant traffic!
@danfg7215
@danfg7215 9 ай бұрын
I was caught completely off guard when you switched from dark to light mode without warning. I am now legally blind.
@aarondfrancis
@aarondfrancis 9 ай бұрын
My bad dog
@medilies
@medilies 9 ай бұрын
I'm gonna sue you for surprising me with a light-mode attack at 1:52. You have been served.
@aarondfrancis
@aarondfrancis 9 ай бұрын
Haha yeah my bad
@lalit3969
@lalit3969 9 ай бұрын
# Summary This video discusses how to extend Markdown in Laravel to enhance its functionality. Aaron Francis demonstrates adding syntax highlighting and Blade component rendering to Markdown. # Highlights - 💡 The author extends Markdown to customize its rendering process and achieve the desired appearance for their website. - 💡 They use the Graham Campbell Markdown package, which is a Laravel adapter for the League's CommonMark package. - 💡 The author adds the Torchlight extension for syntax highlighting and showcases its capabilities. - 💡 They explain the issues with running Blade over Markdown-generated HTML and propose safer alternatives. - 💡 The author demonstrates two approaches: removing code blocks, running Blade, and adding them back, or running Blade over the entire document and reinserting the code blocks. - 💡 They provide code examples and explain how to enable and disable Blade parsing based on the source of the Markdown content. - 💡 The author concludes by discussing the pros and cons of each approach and encourages careful consideration when implementing these extensions. ✌
@andreialdea6072
@andreialdea6072 9 ай бұрын
2:05 you write your own = first party, the second party is the user ( aka the ones that visit your site or use your library)
@aarondfrancis
@aarondfrancis 9 ай бұрын
I feel like any Commonmark extensions that ship with Commonmark are first party though? Then what are the ones that I write?
@cassolmedia
@cassolmedia 9 ай бұрын
@@aarondfrancis I think first or second party depends on what perspective you're speaking from. if a developer creates an extension then that's first party (to them), but If I use it in my project it's second party(to my project). like, if playstation makes a video game, that's a first party playstation game. but when I make a video game, it's also first party.. just from my perspective... or something like that haha
@MrNichuya
@MrNichuya 9 ай бұрын
Hey Aaron, great video as always (because PHP). What patern is your way to go for really large Laravel app?
@aarondfrancis
@aarondfrancis 9 ай бұрын
I try to stick as close to the framework conventions as possible!
@BrentMalice
@BrentMalice 6 ай бұрын
subd cuz of planetscale videos. tell me wat to do now using their competitor and deal
@wadday
@wadday 9 ай бұрын
i was hoping to see Vue component block along with blade :)
@aarondfrancis
@aarondfrancis 9 ай бұрын
I guess you could do that with the parse annotation!
@angelcruzdev
@angelcruzdev 9 ай бұрын
Great video, I think that the first option is more safe to use? Am I wrong? 🤔
@aarondfrancis
@aarondfrancis 9 ай бұрын
You're absolutely correct!
@bart_pn
@bart_pn 9 ай бұрын
I was wondering, how did you get that little contextual comment in your var dumper that shows the file containing the function call? Big fan of using var dumper in everything I make, but have never made anything in Laravel. Is it something Laravel does with the var dumper component?
@aarondfrancis
@aarondfrancis 9 ай бұрын
I'm not sure! I think that's a standard laravel thing
@Tuto1902
@Tuto1902 4 ай бұрын
Is torchlight/torchlight-laravel not supported in Laravel 11? I'm trying to install it with composer but it fails to install. Seems to be looking for illuminate\support ^7.26.0|^8.0 This happens on a fresh Laravel 11 project.
@Tuto1902
@Tuto1902 4 ай бұрын
My end goal is to use the CommonMark extension to properly highlight code blocks in markdown blog posts.
@aarondfrancis
@aarondfrancis 4 ай бұрын
I need to update it! I'll get around to that this week. Sorry for the wait
@Tuto1902
@Tuto1902 4 ай бұрын
@@aarondfrancis Thanks a bunch! In the meantime I'm using the Spatie Markdown plugin which has yielded great results so far. I'm actually going to run a short livestream tomorrow night to show others how to use it. Come hang if you have the time kzbin.infoFdJ4Mg5SrvE?feature=share
@illegalsmirf
@illegalsmirf 9 ай бұрын
Is markdown a replacement for HTML and XML? Why are so many different markdown languages needed?
@aarondfrancis
@aarondfrancis 9 ай бұрын
Markdown is a nice way to write content. It's not a replacement for anything, you can use it if you like it though
@KamilAlkhair
@KamilAlkhair 9 ай бұрын
you are great !! but i have a question can i do mobile app with laravel
@aarondfrancis
@aarondfrancis 8 ай бұрын
You could make the backend API but no, not an actual mobile app
@igotisekaid
@igotisekaid 9 ай бұрын
I like to use Laravel, but i want to make a static website; I know is overkill, but should i really check other options or can i do it no problem with Laravel?
@stefanzweifel
@stefanzweifel 9 ай бұрын
There is a package called spatie/export, that can convert a Laravel app into a bundle of static HTML sites. I use it myself for my website. Works great.
@igotisekaid
@igotisekaid 9 ай бұрын
@@stefanzweifel thanx, i will look into it!; what hosting platform do you use if I may ask?
@aminathahmed5366
@aminathahmed5366 4 ай бұрын
how did you made the twitter card embed so nicely like that?
@aarondfrancis
@aarondfrancis 4 ай бұрын
That's a custom blade component!
@aminathahmed5366
@aminathahmed5366 4 ай бұрын
​​@@aarondfrancis I would like that component to have in my projects, could you share please 🫡
@SouravRakshit_srv
@SouravRakshit_srv 4 ай бұрын
who is the second party 🤣
@aarondfrancis
@aarondfrancis 4 ай бұрын
I still don't know 😂
@Ikxi
@Ikxi 4 ай бұрын
yea i dont understand anything lol
Make self-healing URLs with Laravel
13:58
Aaron Francis
Рет қаралды 39 М.
Laravel + Livewire todo app (and so much more)
16:41
Aaron Francis
Рет қаралды 44 М.
Nastya and balloon challenge
00:23
Nastya
Рет қаралды 57 МЛН
Players vs Corner Flags 🤯
00:28
LE FOOT EN VIDÉO
Рет қаралды 45 МЛН
DHH discusses SQLite (and Stoicism)
54:00
Aaron Francis
Рет қаралды 64 М.
Struggling with Laravel + Vite
34:38
Aaron Francis
Рет қаралды 10 М.
Str::markdown() is More Powerful Than You Think
11:04
Laracasts
Рет қаралды 3,6 М.
Laravel's secret weapon: macros (watch me code)
23:46
Aaron Francis
Рет қаралды 22 М.
Burned out on Javascript
10:08
Aaron Francis
Рет қаралды 13 М.
Customizing Laravel Pulse
21:42
Aaron Francis
Рет қаралды 10 М.
All 17 React Best Practices (IMPORTANT!)
1:46:11
ByteGrad
Рет қаралды 140 М.
I Never Want To Build Authentication Any Other Way
2:03:20
Elliott Chong
Рет қаралды 24 М.
How to Do 90% of What Plugins Do (With Just Vim)
1:14:03
thoughtbot
Рет қаралды 895 М.
PHP is the future
34:27
Aaron Francis
Рет қаралды 177 М.