.mdx file without importing them. Names are case-sensitive, so <YouTube> works while <Youtube> stops the build with Unknown component.
Callouts
Note, Tip, Info, Warning, Check, Danger, CalloutCards and columns
Card, CardGroup, ColumnsTabs
Tabs, TabSteps
Steps, StepAccordions
Accordion, AccordionGroupCode
Code blocks,
CodeGroup, syntax themesMedia
Frame, Video, YouTubeBadges and updates
Badge, Update<SiteAreas /> and <ThemeToggle />, are meant for your own header. See Match your website. To build your own components, see Your own components.
Markdown
Both.md and .mdx files support GitHub-flavored Markdown:
Notra typesets quotes and dashes automatically (
"..." becomes ”…”, -- becomes –), but doesn’t support math or diagrams.
MDX differs from Markdown
Notra parses.mdx files as MDX, which is stricter than Markdown:
- Close every tag, including empty ones like
<br />and<img src="/a.png" />. - Use
{/* comment */}instead of<!-- comment -->. - Escape a literal
<or{in text as\<and\{, or put it in backticks.
.md so none of these rules apply.
Not allowed in content
<script> tags stop the build in both .md and .mdx. Put JavaScript in script.js or in a component.
Styling inside components
Built-in components bring their own compact styles instead of the post’s text styles, so keep to short paragraphs, bold, links andinline code inside them. Lists, headings and tables inside a callout, card, step, tab or accordion render without the post’s styling, and code blocks inside them don’t get the copy button.
Each component carries a stable class name you can target from your own CSS, listed on each component’s page. See Design and CSS.