@alauda/doom 1.10.1 → 1.10.3

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/lib/remarkrc.js CHANGED
@@ -10,7 +10,7 @@ import remarkLintLintMatchPunctuation from 'remark-lint-match-punctuation';
10
10
  import remarkLintNoChinesePunctuationInNumber from 'remark-lint-no-chinese-punctuation-in-number';
11
11
  import remarkLintNoDuplicateHeadingsInSection from 'remark-lint-no-duplicate-headings-in-section';
12
12
  import remarkLintNoHiddenTableCell from 'remark-lint-no-hidden-table-cell';
13
- import doomLint, { listItemSize, noDeepHeading, noDeepList, noParagraphIndent, tableSize, unitCase, } from "./remark-lint/index.js";
13
+ import doomLint, { noDeepHeading, noDeepList, noParagraphIndent, tableSize, unitCase, } from "./remark-lint/index.js";
14
14
  export default {
15
15
  plugins: [
16
16
  remarkDirective,
@@ -23,7 +23,6 @@ export default {
23
23
  remarkLintNoDuplicateHeadingsInSection,
24
24
  remarkLintNoHiddenTableCell,
25
25
  doomLint,
26
- listItemSize,
27
26
  noDeepHeading,
28
27
  noDeepList,
29
28
  noParagraphIndent,
@@ -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.1",
3
+ "version": "1.10.3",
4
4
  "type": "module",
5
5
  "description": "Doctor Doom making docs.",
6
6
  "repository": "git+https://github.com/alauda/doom.git",
@@ -69,7 +69,7 @@ td {
69
69
  margin-bottom: 1rem;
70
70
  line-height: 1.75rem;
71
71
 
72
- > ol {
72
+ > .rp-list-decimal {
73
73
  counter-reset: callouts;
74
74
  list-style-type: none;
75
75
 
@@ -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,