Using mdx in Frosti
Preface#
This article describes how to use the components provided by Frosti in mdx
to realize the functions that can’t be realized by normal md
.
Main text#
Getting started#
First you need to create an mdx
file, which is as simple as changing the extension to .mdx
.
Introducing#
The components provided by Frosti are placed in the /blog
and /page
folders. Write something under the document properties (frontmatter):
Example#
Collapse#
This is an example text.
This is the hidden content!
Diff#
Error#
Warning#
Hey! Watch out for potholes! Message#
Success#
Congratulations on your successful deployment! Kbd#
Ctrl + C to copy the text.
TimeLine#
First Macintosh computer
iMac
iPod
iPhone
Apple Watch
LinkCard#