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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-slidev",
3
3
  "type": "module",
4
- "version": "0.48.0-beta.20",
4
+ "version": "0.48.0-beta.22",
5
5
  "description": "Create starter template for Slidev",
6
6
  "author": "antfu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -8,9 +8,9 @@
8
8
  "export": "slidev export"
9
9
  },
10
10
  "dependencies": {
11
- "@slidev/cli": "^0.48.0-beta.20",
11
+ "@slidev/cli": "^0.48.0-beta.22",
12
12
  "@slidev/theme-default": "latest",
13
13
  "@slidev/theme-seriph": "latest",
14
- "vue": "^3.4.20"
14
+ "vue": "^3.4.21"
15
15
  }
16
16
  }
@@ -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
- ```ts
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
  ---