@alauda/doom 1.10.2 → 1.10.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.
@@ -207,6 +207,9 @@ const getCommonConfig = async ({ config, root, configFilePath, base, version, do
207
207
  dev: {
208
208
  lazyCompilation: lazy,
209
209
  },
210
+ performance: {
211
+ buildCache: false,
212
+ },
210
213
  plugins: [pluginReact(), pluginSass(), pluginSvgr(), pluginYaml()],
211
214
  resolve: {
212
215
  alias: {
@@ -20,7 +20,7 @@ export const extractTextAndId = (title) => {
20
20
  const text = title.replace(customIdReg, '').trimEnd();
21
21
  const customId = title.match(customIdReg)?.[0]?.slice(2, -1) || '';
22
22
  return [
23
- text.replace(/\\{2}/g, '').replace(/(?:[^\\]\\([[\]]))+/g, '$1'),
23
+ text.replace(/\\{2}/g, '').replace(/(^|[^\\])\\([[\]])/g, '$1$2'),
24
24
  customId,
25
25
  ];
26
26
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alauda/doom",
3
- "version": "1.10.2",
3
+ "version": "1.10.4",
4
4
  "type": "module",
5
5
  "description": "Doctor Doom making docs.",
6
6
  "repository": "git+https://github.com/alauda/doom.git",
@@ -116,6 +116,12 @@ td {
116
116
  --rp-code-block-bg: #{color.adjust($color: #242424, $lightness: 5%)};
117
117
  }
118
118
 
119
+ .rspress {
120
+ &-sidebar-item {
121
+ word-break: break-word;
122
+ }
123
+ }
124
+
119
125
  @mixin print {
120
126
  .rspress {
121
127
  &-nav,