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/MDXAtomscontains all components
Text
Basic handwriting
- How to use
basic textmd
- 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 3md
- Components
H1H2H3
There is a disadvantage that the structure of the text becomes somewhat complicated if the title is deeply subdivided beyond H3
Table of contentcomponent
- Only
H1andH2are included - For normal use of
TOC, the text of the title must contain only pure text
🚫 # _Head_ **is** `head` ✅ # Head is headmd
List
Ordered List
- How to use
1. I like apple 2. I like banana 3. I love myselfmd
-
Results
- I like apple
- I like banana
- I love myself
Unordered List
- How to use
- typescript 1. concrete - love it - nextjs - awsome - styled-componentsmd
- Results
- typescript
- concrete
- love it
- concrete
- nextjs
- awsome
- styled-components
Quote
- How to use
> Basic Quotesmd
> Warning quote:warningmd
> Question quote:questionmd
> Note Quotes:notemd
- 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