Setting the file. One moment.
Subchapter 7.25
references/core-syntax.mdMarkdown2 KBView on GitHub
Use --- with blank lines before and after:
# Slide 1
Content
---
# Slide 2
More contentFirst frontmatter block configures the entire deck:
---
theme: default
title: My Presentation
lineNumbers: true
---
# First SlideEach slide can have its own frontmatter:
---
layout: center
background: /image.jpg
class: text-white
---
# Centered SlideHTML comments at end of slide become presenter notes:
# My Slide
Content here
<!--
These are presenter notes.
- Remember to mention X
- Demo the feature
-->Standard Markdown with Shiki highlighting:
```ts
const hello = 'world'
```With features:
```ts {2,3} // Line highlighting
```ts {1|2-3|all} // Click-based highlighting
```ts {monaco} // Monaco editor
```ts {monaco-run} // Runnable code
```ts twoslash // TypeScript types
```Inline: $E = mc^2$
Block:
$$
\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
$$Mermaid:
```mermaid
graph LR
A --> B --> C
```PlantUML:
```plantuml
@startuml
Alice -> Bob : Hello
@enduml
```Enable with comark: true:
[styled text]{style="color:red"}
{width=500px}
::component{prop="value"}Styles apply only to current slide:
# Red Title
<style>
h1 { color: red; }
</style>---
src: ./pages/intro.md
---Import specific slides:
---
src: ./other.md#2,5-7
---