Этап 2: общий Markdown-рендер и импорт стартового контента

- packages/md: unified + remark-gfm + remark-directive, свой плагин [[slug]],
  блоки keyfacts/danger/warning/tip/info, чек-листы, шаги, таблицы, фото,
  rehype-sanitize, разбор шпаргалки, терпимый разбор front matter, тесты
- pnpm seed: пространство, разделы, 12 статей, 58 картинок (sharp → WebP
  1600 + 480, без EXIF), исходники как Attachment, администратор, отчёт
- поисковые поля статьи (tsvector с весами, нормализованный и сжатый текст)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
deonisii
2026-10-04 12:15:21 +03:00
co-authored by Claude Opus 5.5
parent aa04c1f5db
commit 768daf7c5f
14 changed files with 1530 additions and 30 deletions
+3 -24
View File
@@ -151,9 +151,9 @@ importers:
packages/md:
dependencies:
hast-util-to-string:
specifier: ^3.0.1
version: 3.0.1
'@kb/shared':
specifier: workspace:^
version: link:../shared
rehype-sanitize:
specifier: ^6.0.0
version: 6.0.0
@@ -169,9 +169,6 @@ importers:
remark-parse:
specifier: ^11.0.0
version: 11.0.0
remark-rehype:
specifier: ^11.1.2
version: 11.1.2
unified:
specifier: ^11.0.5
version: 11.0.5
@@ -2440,9 +2437,6 @@ packages:
hast-util-to-html@9.0.5:
resolution: {integrity: sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==}
hast-util-to-string@3.0.1:
resolution: {integrity: sha512-XelQVTDWvqcl3axRfI0xSeoVKzyIFPwsAGSLIsKdJKQMXDYJS4WYrBNF/8J7RdhIcFI2BOHgAifggsvsxp/3+A==}
hast-util-whitespace@3.0.0:
resolution: {integrity: sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==}
@@ -3284,9 +3278,6 @@ packages:
remark-parse@11.0.0:
resolution: {integrity: sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==}
remark-rehype@11.1.2:
resolution: {integrity: sha512-Dh7l57ianaEoIpzbp0PC9UKAdCSVklD8E5Rpw7ETfbTl3FqcOOgq5q2LVDhgGCkaBv7p24JXikPdvhhmHvKMsw==}
remark-stringify@11.0.0:
resolution: {integrity: sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw==}
@@ -6206,10 +6197,6 @@ snapshots:
stringify-entities: 4.0.4
zwitch: 2.0.4
hast-util-to-string@3.0.1:
dependencies:
'@types/hast': 3.0.5
hast-util-whitespace@3.0.0:
dependencies:
'@types/hast': 3.0.5
@@ -7205,14 +7192,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
remark-rehype@11.1.2:
dependencies:
'@types/hast': 3.0.5
'@types/mdast': 4.0.4
mdast-util-to-hast: 13.2.1
unified: 11.0.5
vfile: 6.0.3
remark-stringify@11.0.0:
dependencies:
'@types/mdast': 4.0.4