create-slidev 0.48.0-beta.21 → 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 +1 -1
- package/template/slides.md +21 -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: [
|
|
@@ -202,7 +203,8 @@ const author = reactive({
|
|
|
202
203
|
})
|
|
203
204
|
```
|
|
204
205
|
|
|
205
|
-
```ts
|
|
206
|
+
```ts {*|1-2|3-4|3-4,8}
|
|
207
|
+
// step 2
|
|
206
208
|
export default {
|
|
207
209
|
data() {
|
|
208
210
|
return {
|
|
@@ -220,6 +222,7 @@ export default {
|
|
|
220
222
|
```
|
|
221
223
|
|
|
222
224
|
```ts
|
|
225
|
+
// step 3
|
|
223
226
|
export default {
|
|
224
227
|
data: () => ({
|
|
225
228
|
author: {
|
|
@@ -233,6 +236,22 @@ export default {
|
|
|
233
236
|
})
|
|
234
237
|
}
|
|
235
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
|
+
```
|
|
236
255
|
````
|
|
237
256
|
|
|
238
257
|
---
|