You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 🎙 [**Presenter Mode**](https://sli.dev/guide/presenter-mode.html) - use another window, or even your phone to control your slides
59
-
- 🧮 [**LaTeX**](https://sli.dev/demo/starter/6) - Built-in LaTeX math equations support
59
+
- 🧮 [**LaTeX**](https://sli.dev/guide/syntax.html#latex) - Built-in LaTeX math equations support
60
+
- 📰 [**Diagrams**](https://sli.dev/guide/syntax.html#diagrams) - Creates diagrams with textual descriptions
60
61
- 🌟 [**Icons**](https://sli.dev/guide/syntax.html#icons) - Access to icons from any iconset directly
61
62
- 💻 [**Editors**](https://sli.dev/guide/editors.html) - Integrated editor, or [extension for VS Code](https://github.com/slidevjs/slidev-vscode)
62
63
- 🎥 [**Recording**](https://sli.dev/guide/recording.html) - built-in recording and camera view
@@ -84,6 +85,7 @@ For a full example, you can check the [demo](https://github.com/slidevjs/slidev/
84
85
-[VueUse](https://vueuse.org) family - [`@vueuse/core`](https://github.com/vueuse/vueuse), [`@vueuse/head`](https://github.com/vueuse/head), [`@vueuse/motion`](https://github.com/vueuse/motion), etc.
- 🎙 [**Presenter Mode**](/guide/presenter-mode.html) - use another window, or even your phone to control your slides
19
-
- 🧮 [**LaTeX**](https://sli.dev/demo/starter/6) - Built-in LaTeX math equations support
19
+
- 🧮 [**LaTeX**](/guide/syntax.html#latex) - Built-in LaTeX math equations support
20
+
- 📰 [**Diagrams**](/guide/syntax.html#diagrams) - Creates diagrams with textual descriptions
20
21
- 🌟 [**Icons**](/guide/syntax.html#icons) - Access to icons from any iconset directly
21
22
- 💻 [**Editors**](/guide/editors.html) - Integrated editor, or [extension for VS Code](https://github.com/slidevjs/slidev-vscode)
22
23
- 🎥 [**Recording**](/guide/recording.html) - built-in recording and camera view
@@ -36,6 +37,7 @@ Slidev is made possible by combining these tools and technologies.
36
37
-[VueUse](https://vueuse.org) family - [`@vueuse/core`](https://github.com/vueuse/vueuse), [`@vueuse/head`](https://github.com/vueuse/head), [`@vueuse/motion`](https://github.com/vueuse/motion), etc.
You can also create diagrams / graphs from textual descriptions in your Markdown, powered by [Mermaid](https://mermaid-js.github.io/mermaid).
267
+
268
+
Code blocks marked as `mermaid` will be converted to digrams, for example:
269
+
270
+
~~~md
271
+
//```mermaid
272
+
sequenceDiagram
273
+
Alice->John: Hello John, how are you?
274
+
Note over Alice,John: A typical interaction
275
+
//```
276
+
~~~
277
+
278
+
You can further pass an options object to it to specify the scaling and theming. The syntax of the object is a JavaScript object literal, you will need to add quotes (`'`) for strings and use comma (`,`) between keys.
Copy file name to clipboardExpand all lines: packages/create-app/template/slides.md
+46-20Lines changed: 46 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -151,6 +151,39 @@ Check out [the guides](https://sli.dev/custom/#components) for more.
151
151
</div>
152
152
</div>
153
153
154
+
155
+
---
156
+
class: px-20
157
+
---
158
+
159
+
# Themes
160
+
161
+
Slidev comes with powerful theming support. Themes are able to provide styles, layouts, components, or even configurations for tools. Switching between themes by just **one edit** in your frontmatter:
Read more about [How to use a theme](https://sli.dev/themes/use.html) and
184
+
check out the [Awesome Themes Gallery](https://sli.dev/themes/gallery.html).
185
+
186
+
154
187
---
155
188
156
189
# LaTeX
@@ -179,37 +212,30 @@ $$
179
212
180
213
[Learn more](https://sli.dev/guide/syntax#latex)
181
214
182
-
---
183
-
class: px-20
184
215
---
185
216
186
-
# Themes
217
+
# Diagrams
187
218
188
-
Slidev comes with powerful theming support. Themes are able to provide styles, layouts, components, or even configurations for tools. Switching between themes by just **one edit**in your frontmatter:
219
+
You can create diagrams / graphs from textual descriptions, directly in your Markdown.
0 commit comments