Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.06 KB

README.md

File metadata and controls

42 lines (28 loc) · 1.06 KB

Markdown and MDX

Zero automatically converts all .md files to HTML pages.

Zero also supports MDX. This means you can use JSX in-between your markdown like this:

import Graph from './components/graph'

## Here's a graph

<Graph />

Importing .md Components

You can also import one markdown (or MDX) into another. Like this:

import License from './license.md'
# Hello, world!

<License />

Populating <head>

Zero turns your Markdown into HTML page, you might want to set head tags of this page like <title>, <meta>, etc. for improved SEO. Zero has React Helmet set up which you can also use in your .md and .mdx files:

import {Helmet} from "react-helmet";

<Helmet>
  <meta charset="ISO-8859-1" />
  <title>Page Title</title>
  <link rel="canonical" href="http://mysite.com/example" />
</Helmet>

# Page Heading
This page has a title and meta tags set.

You can check all the supported tags here.