Introduction
Blog Usage Guideβ
React Component Live Codeβ
Live Editor
function Clock(props) { const [date, setDate] = useState(new Date()); useEffect(() => { const timerID = setInterval(() => tick(), 1000); return function cleanup() { clearInterval(timerID); }; }); function tick() { setDate(new Date()); } return ( <div> <h2>It is {date.toLocaleTimeString()}.</h2> </div> ); }
Result
Loading...
Tabs/TabItem Component for Multi-tab Contentβ
- Java
- Python
java System.out.println("Hello, Java!");
python print("Hello, Python!")
CodeBlock Highlightingβ
hello.js
console.log("Hello, world!");
Details Collapsible Contentβ
Click to expand details
Here is collapsible content, you can put more instructions or code here.
Page Declarationβ
Agreement
The code part of this work is licensed under Apache License 2.0 . You may freely modify and redistribute the code, and use it for commercial purposes, provided that you comply with the license. However, you are required to:
- Attribution: Retain the original author's signature and code source information in the original and derivative code.
- Preserve License: Retain the Apache 2.0 license file in the original and derivative code.
- Attribution: Give appropriate credit, provide a link to the license, and indicate if changes were made.
- NonCommercial: You may not use the material for commercial purposes. For commercial use, please contact the author.
- ShareAlike: If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.
Support Background Highlight, Font Colorβ
White text on red backgroundAdmonitions Supported in MDXβ
note
Note content
tip
Tip content
info
Info content
warning
Warning content
danger
Danger warning content
caution
Caution content
Magic in Code Blocksβ
title="HelloWorld.java"showLineNumbers{3}Highlight only line 3highlight-next-lineHighlight next linehighlight-startHighlight starthighlight-endHighlight end
HelloWorld.java
public class HelloWorld {
public static void main(String[] args) {
String s = "Hello World!";
System.out.println(s);
System.out.println(s);
}
}
public class HelloWorld {
public static void main(String[] args) {
String s = "Hello World!";
}
}
Math Formulasβ
This is an inline formula .