Blog
MDX
component
Before You Read
What is MDX Atom?
MDX atom component means a core rendering component of MDX
Find out MDX component on the official site
💡
src/components/MDXAtoms
contains all components
Text
Basic handwriting
- How to use
basic text
md
- Results
basic text
Italic and bold
- How to use
**bold text** _italic text_ _**bold_italic text**_
md
- Results
bold text
italic text
bold_italic text
Link
- How to use
[link-text](link-url)
md
- Results
Title
- How to use
# Title 1 ## Title 2 ### Title 3
md
- Components
H1
H2
H3
There is a disadvantage that the structure of the text becomes somewhat complicated if the title is deeply subdivided beyond H3
Table of content
component
- Only
H1
andH2
are included - For normal use of
TOC
, the text of the title must contain only pure text
🚫 # _Head_ **is** `head` ✅ # Head is head
md
List
Ordered List
- How to use
1. I like apple 2. I like banana 3. I love myself
md
-
Results
- I like apple
- I like banana
- I love myself
Unordered List
- How to use
- typescript 1. concrete - love it - nextjs - awsome - styled-components
md
- Results
- typescript
- concrete
- love it
- concrete
- nextjs
- awsome
- styled-components
Quote
- How to use
> Basic Quotes
md
> Warning quote:warning
md
> Question quote:question
md
> Note Quotes:note
md
- Results
💡Basic Quotes
🔥Warning quote
🧐Question quote
✒️Note Quotes
Code
Code blocks are essential for dev blogs
Next your home has practical and customizable code components
How to use inline code
- How to use
`inline code`
md
- Results
inline code
How to use code block
- How to use
```language language code ```
md
-
Code Block Settings Options
- Language ( required ):
language
- Highlight ( optional ):
{singleLineNumber, startLineNumber-endLineNumber}
- Number of lines ( optional ):
showLineNumber
- Language ( required ):
Argument: language {lineNumber} showLineNumbers
```js {1,2-3} showLineNumbers const favorites = { animal: "sea-otter 🦦", fruits: ["🍎", "🍏", "🍓", "🍑", "🍍"], } ```
md
- Results
const favorites = { animal: "sea-otter 🦦", fruits: ["🍎", "🍏", "🍓", "🍑", "🍍"], }
js
Image
- Optimized with
next/image
- Automatically fit the image size
How to use it

md
Divider
- How to use
---
md
- Results
Table
- How to use
| | rock | scissors | paper | | ----------- | -------- | -------- | -------- | | emoji | 👊 | 🤞🏻 | ✋🏾 | | possibility | `33.33%` | `33.33%` | `33.33%` |
md
- Results
rock | scissors | paper | |
---|---|---|---|
emoji | 👊 | 🤞🏻 | ✋🏾 |
possibility | 33.33% | 33.33% | 33.33% |
Supported via remark-gfm
danpacho
•
2022년 08월 02일
•
Thanks For Reading !
How to post?
Next Your Home