Read in 5 min read, written by foofoo
Hello props in scope is working
I am a dynamic component
Marked texts: text with yellow phrase, text with red phrase, text with green phrase, and text with blue phrase.
Some markdown content 👍
Alert Text Centered
Warning Text Aligned Right
You have to put an empty line after export
statements in the mdx files.
Can you explain why the exports
may cause harmful activities ?
disableExports: true
option to remove all export
statementsrecma
plugin to remove all exports other than default,
but the declarations stay and work in the mdx (needs a recma plugin)
What do you think about that?
Recma plugins are very usefull for solving specific mdx issues.
The remark plugin remark-flexible-toc
is the tool for creating TOC, especially for the mdx users.
You can create a custom <Toc />
component, and use it in the mdx file like <Toc toc={toc} />
.
The remark-flexible-containers
can also make this kind of details
-summary
HTML elements.
typescript// prettier-ignorefunction Text(text: string) {console.log(text)}const text = "next-mdx-remote-client";Text(text);
diff// example for deletion and addition lines- { MDXRemote } from "next-mdx-remote";+ { MDXClient } from "next-mdx-remote-client";
Autolink www.example.com and inline code
.
one tilde strikethrough or two tildes strikethrough
Here is deleted text and inserted text
Left Aligned Header | Right Aligned Header |
---|---|
Content Cell | Content Cell |
Content Cell | Content Cell |
"Authorize <GITHUB_USER>"
version of <operation>.<mount> <= 1.3.x
< 8ms (allowed one blank after "<")
escape opening curlybraces "{}"
Centering text and image is very easy !
blockquate markdown element
The
@import
is used to import style rules from other valid stylesheets.
custom blockquate element
The
@import
is used to import style rules from other valid stylesheets.