@slidev/docs 52.3.0 → 52.4.0
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/features/notes-auto-ruby.md +31 -0
- package/package.json +4 -4
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: [notes, presenter]
|
|
3
|
+
description: Automatically add `<ruby>` tags to your notes.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Notes Auto Ruby
|
|
7
|
+
|
|
8
|
+
> Available since v52.4.0
|
|
9
|
+
|
|
10
|
+
When you write notes in your slides, you might want to add some ruby text to help pronouncing the some words. You can always add `<ruby>` tags to your notes manually, but Slidev also provides a convenient way to do this automatically by a global auto-replacement.
|
|
11
|
+
|
|
12
|
+
In the headmatter, you can set the `notesAutoRuby` option to a map of words to their ruby text:
|
|
13
|
+
|
|
14
|
+
```md
|
|
15
|
+
---
|
|
16
|
+
notesAutoRuby:
|
|
17
|
+
日本語: ni hon go
|
|
18
|
+
勉強: べんきょう
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
# Your slides here
|
|
22
|
+
|
|
23
|
+
<!--
|
|
24
|
+
私は日本語を勉強しています。
|
|
25
|
+
-->
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
And the notes will be rendered as:
|
|
29
|
+
|
|
30
|
+
<p>私は<ruby>日本語<rt>ni hon go</rt></ruby>を<ruby>勉強<rt>べんきょう</rt></ruby>しています。</p>
|
|
31
|
+
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/docs",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "52.
|
|
4
|
+
"version": "52.4.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"funding": "https://github.com/sponsors/antfu",
|
|
7
7
|
"homepage": "https://sli.dev",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"vitepress-plugin-group-icons": "^1.6.4",
|
|
37
37
|
"vitepress-plugin-llms": "^1.8.0",
|
|
38
38
|
"vue": "^3.5.22",
|
|
39
|
-
"@slidev/client": "52.
|
|
40
|
-
"@slidev/
|
|
41
|
-
"@slidev/
|
|
39
|
+
"@slidev/client": "52.4.0",
|
|
40
|
+
"@slidev/parser": "52.4.0",
|
|
41
|
+
"@slidev/types": "52.4.0"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"dev": "vitepress",
|