create-slidev 0.48.0-beta.20 → 0.48.0-beta.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/template/package.json +2 -2
- package/template/slides.md +23 -2
package/package.json
CHANGED
package/template/package.json
CHANGED
package/template/slides.md
CHANGED
|
@@ -191,7 +191,8 @@ Powered by [shiki-magic-move](https://shiki-magic-move.netlify.app/), Slidev sup
|
|
|
191
191
|
Add multiple code blocks and wrap them with <code>````md magic-move</code> (four backticks) to enable the magic move. For example:
|
|
192
192
|
|
|
193
193
|
````md magic-move
|
|
194
|
-
```ts
|
|
194
|
+
```ts {*|2|*}
|
|
195
|
+
// step 1
|
|
195
196
|
const author = reactive({
|
|
196
197
|
name: 'John Doe',
|
|
197
198
|
books: [
|
|
@@ -201,7 +202,9 @@ const author = reactive({
|
|
|
201
202
|
]
|
|
202
203
|
})
|
|
203
204
|
```
|
|
204
|
-
|
|
205
|
+
|
|
206
|
+
```ts {*|1-2|3-4|3-4,8}
|
|
207
|
+
// step 2
|
|
205
208
|
export default {
|
|
206
209
|
data() {
|
|
207
210
|
return {
|
|
@@ -217,7 +220,9 @@ export default {
|
|
|
217
220
|
}
|
|
218
221
|
}
|
|
219
222
|
```
|
|
223
|
+
|
|
220
224
|
```ts
|
|
225
|
+
// step 3
|
|
221
226
|
export default {
|
|
222
227
|
data: () => ({
|
|
223
228
|
author: {
|
|
@@ -231,6 +236,22 @@ export default {
|
|
|
231
236
|
})
|
|
232
237
|
}
|
|
233
238
|
```
|
|
239
|
+
|
|
240
|
+
Non-code blocks are ignored.
|
|
241
|
+
|
|
242
|
+
```vue
|
|
243
|
+
<!-- step 4 -->
|
|
244
|
+
<script setup>
|
|
245
|
+
const author = {
|
|
246
|
+
name: 'John Doe',
|
|
247
|
+
books: [
|
|
248
|
+
'Vue 2 - Advanced Guide',
|
|
249
|
+
'Vue 3 - Basic Guide',
|
|
250
|
+
'Vue 4 - The Mystery'
|
|
251
|
+
]
|
|
252
|
+
}
|
|
253
|
+
</script>
|
|
254
|
+
```
|
|
234
255
|
````
|
|
235
256
|
|
|
236
257
|
---
|