We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c16cbd commit 75d8b99Copy full SHA for 75d8b99
1 file changed
src/remark-plugins/remark-custom-asides/index.mjs
@@ -3,6 +3,13 @@
3
*/
4
5
import { visit } from 'unist-util-visit';
6
+
7
+const asideMapping = {
8
+ tip: '提示',
9
+ warning: '警告',
10
+ todo: 'TODO'
11
+}
12
13
export default function customAsides(
14
options = {
15
mapping: {},
@@ -49,7 +56,7 @@ export default function customAsides(
49
56
children: [
50
57
{
51
58
type: 'text',
52
- value: `${className}`,
59
+ value: `${asideMapping[className]}`,
53
60
},
54
61
],
55
62
0 commit comments