My Favorite Way to Use Markdown in NextJS

preview_player
Показать описание
Markdown is so nice for building fast, static pages. It has so many use cases too. Blog? Legal pages? Course content? Markdown or MDX (React components inside of markdown) got your back. This is by far the coolest way to use Markdown inside of your NextJS project I've ever seen.

Рекомендации по теме
Комментарии
Автор

Just wanted to share that I'm quite happy I came across your channel (when I was looking at NextJS 13 content a couple of days ago). You explain things quite well and clearly!

andrevenancio
Автор

The algorithm is strong, I found your video while taking a break from implementing MDX in my NextJS app 😂 Went back, scrapped the whole thing and used your way which was much more simple and TYPE-SAFE!!!

maxijonson
Автор

Good Explanation.
I just want to know is there any way to add the mdx from db side ?
I mean I want to have a blog frontend and CMS to push new blogs.

sayakduttaa
Автор

npm i contentlayer rehype-autolink-headings rehype-pretty-code rehype-slug rehype remark-gfm shiki

rrenildopereiraa
Автор

Great content! Maybe you might also like the Nextra project. MDX + NextJS + Simple.

marcwittwer
Автор

I've been using contentlayer since your video about ShadCN's Taxonomy project (that is where I found it) and I absolutely love it. By the way, do you have any similar Nextjs repos to recommend?

letfoobar
Автор

Hi josh, does contentlayer optimizes the images in the mdx using Next/Image?

jerbparagas
Автор

Hey Josh, Do you have any Idea of Using MUI in Next Js 13.4?

sunilnune
Автор

can you share your vscode setup some time? specifically for nextjs

resxurrection
Автор

Great content. I am writing a blog website (i am new in coding) I just have a concern about plugins. This plugins can stop working?

MAMUT
Автор

Thanks for awesome work mate, really appreciate it ❤

saman
Автор

I recommend new ContentLayer+Notion combo for live remote update ! Manual mdx file updates suck

maverick-
Автор

Hi josh can u please tell the vs code theme youre using I really kinda like it

nisabmohd
Автор

In the last part of declaring the components for the styling, could it be done with tailwind prose?

Retrosen
Автор

Is it working as well, if the content is not in mdx files but in a database?

akosbalint
Автор

I don't see the tutorial ... He talk about contentLayer ?

wilonweb
Автор

Thanks for the video. Regarding the type safety does content layer validate that the required fields are present in the front-matter of the .mdx files at build time? If not it would be pretty misleading to call it type safe since the properties of the Doc type might be missing in the actual front-matter data.

avi
Автор

hey i have an idea. i need to create blog project. all the blog content are stored as mdx in github repo of same project. and i want to render mdx in screen. so. and for crud. i have simple cms. which for creation i will build form and after submitting the form the form data is then converted into markdown file and uploaded to that repo. hence this works for update delete. Is this is efficient way??? . I want to make fully dynamic blog posts

saphalpantha
Автор

I was using strapi and next 13 I can't render bullet list and quotes using React Markdown can you tell why and how to solve that please

faizansohail
Автор

will this method work with rich text when using strapi and next 13

faizansohail