logo

MDX Syntax - CodeBlock

Apr 27, 20231 min read

This post was last modified 243 days ago, and some of the content may be outdated.

Line Numbers

default config: site.config.js -> config.markdown.lineNumbers

Input

MDX
MDX

Output

JS
JS

Line Highlighting in Code Blocks

Input

MDX

Output

TEXT

Colored Diffs in Code Blocks

Input

MDX

Output

JS

Errors and Warnings in Code Blocks

Input

MDX

Output

JS

Focus in Code Blocks

Input

MDX

Output

JS
MDX Syntax - CodeBlock
转载或引用本文时请遵守许可协议,注明出处、不得用于商业用途!

HITS

LAST UPDATED

Apr 30, 2023
Powered By Next.js • Deployed on Tencent Cloud
CC BY-NC-SA 4.0 © 2023 Ricky Tang 沪ICP备2022012076号-1