md 文档与 jsx 混写记录,具体使用见:mdx 示例
提示
Use the power of React to create interactive blog posts.
<button onClick={() => alert("button clicked!")}>Click me!</button>
md 文档与 jsx 混写记录,具体使用见:mdx 示例
Use the power of React to create interactive blog posts.
<button onClick={() => alert("button clicked!")}>Click me!</button>
Docusaurus blogging features are powered by the blog plugin.
Simply add Markdown files (or folders) to the blog directory.
Regular blog authors can be added to authors.yml.
The blog post date can be extracted from filenames, such as:
2019-05-30-welcome.md2019-05-30-welcome/index.mdA blog post folder can be convenient to co-locate blog post images:

The blog supports tags as well!
And if you don't want a blog: just delete this directory, and use blog: false in your Docusaurus config.
import React from "react";
import clsx from "clsx";
import Link from "@docusaurus/Link";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import Layout from "@theme/Layout";
import HomepageFeatures from "@site/src/components/HomepageFeatures";
import styles from "./index.module.css";
// import SearchBarWrapper from "../theme/SearchBar";
function HomepageHeader() {
const { siteConfig } = useDocusaurusContext();
return (
<header className={clsx("hero hero--primary", styles.heroBanner)}>
<div className="container">
<h1 className="hero__title">{siteConfig.title}</h1>
<p className="hero__subtitle">{siteConfig.tagline}</p>
<div className={styles.buttons}>
<Link
className="button button--secondary button--lg"
to="/docs/intro"
>
JUST GONE FOR 5MIN ⏱️
</Link>
</div>
</div>
{/* <SearchBarWrapper></SearchBarWrapper> */}
</header>
);
}
export default function Home() {
const { siteConfig } = useDocusaurusContext();
return (
<Layout
title={`Hello from ${siteConfig.title}`}
description="Description will go into a meta tag in <head />"
>
<HomepageHeader />
<main>
<HomepageFeatures />
</main>
</Layout>
);
}
Markdown 与 jsx 混用
cs
fdfgdfg
fdsfs
一级引用
二级引用
三级引用
四级引用
五级引用
六级引用
//无序列表嵌套
shaoliangdaima,danhangshiyong
| 123 | 234 | 345 |
|---|---|---|
| abc | bcd | cde |
| abc | bcd | cde |
| abc | bcd | cde |