dumi 2.2.2 → 2.2.4
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.
|
@@ -36,7 +36,6 @@ __export(rehypeDemo_exports, {
|
|
|
36
36
|
});
|
|
37
37
|
module.exports = __toCommonJS(rehypeDemo_exports);
|
|
38
38
|
var import_block = __toESM(require("../../../assetParsers/block"));
|
|
39
|
-
var import_tabs = require("../../../features/tabs");
|
|
40
39
|
var import_utils = require("../../../utils");
|
|
41
40
|
var import_path = __toESM(require("path"));
|
|
42
41
|
var import_plugin_utils = require("umi/plugin-utils");
|
|
@@ -209,8 +208,7 @@ function rehypeDemo(opts) {
|
|
|
209
208
|
import_path.default.relative(opts.cwd, parseOpts.fileAbsPath)
|
|
210
209
|
));
|
|
211
210
|
} else {
|
|
212
|
-
const
|
|
213
|
-
const localId = [tabKey, opts.fileLocale, String(index++)].filter(Boolean).join("-");
|
|
211
|
+
const localId = [opts.fileLocale, String(index++)].filter(Boolean).join("-");
|
|
214
212
|
parseOpts.fileAbsPath = opts.fileAbsPath.replace(".md", ".tsx");
|
|
215
213
|
parseOpts.id = getCodeId(
|
|
216
214
|
opts.cwd,
|
package/package.json
CHANGED
|
@@ -94,28 +94,36 @@
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
&[data-prev] {
|
|
97
|
-
float:
|
|
97
|
+
float: left;
|
|
98
98
|
padding-inline-end: 24px;
|
|
99
99
|
|
|
100
100
|
svg {
|
|
101
101
|
margin-inline-end: 4px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
[data-direction='rtl'] & {
|
|
105
|
+
float: right;
|
|
102
106
|
|
|
103
|
-
|
|
107
|
+
svg {
|
|
104
108
|
transform: rotate(180deg);
|
|
105
109
|
}
|
|
106
110
|
}
|
|
107
111
|
}
|
|
108
112
|
|
|
109
113
|
&[data-next] {
|
|
110
|
-
float:
|
|
114
|
+
float: right;
|
|
111
115
|
text-align: end;
|
|
112
116
|
padding-inline-start: 24px;
|
|
113
117
|
|
|
114
118
|
svg {
|
|
115
119
|
margin-inline-start: 4px;
|
|
116
120
|
transform: rotate(180deg);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
[data-direction='rtl'] & {
|
|
124
|
+
float: left;
|
|
117
125
|
|
|
118
|
-
|
|
126
|
+
svg {
|
|
119
127
|
transform: rotate(0);
|
|
120
128
|
}
|
|
121
129
|
}
|