Commit caa303f
committed
refactor: dedupe feed markdown RSC rendering and cleanup legacy code
- Add shared renderMarkdownRsc utility for markdown→JSX→RSC pipeline
- Feed list/timeline/detail now use RSC instead of HTML string parsing
- Feed detail page reuses entry.contentRsc instead of re-rendering
- Admin edit path skips content rendering (only needs raw content)
- Separate query keys for raw vs rendered feed entries
- Preview query key uses content hash to avoid cache bloat
- Remove legacy Markdown.tsx and handler files (dead code)
- Remove DocContent pass-through wrapper (inlined)
- DRY processor.tsx with shared createBasePipeline function
- Remove unused exports (renderMarkdown sync, highlightCode)
- Fix lint errors in MdComponents.tsx (JSX in try/catch)
Net: -400 lines, cleaner architecture, better perf for admin path
Note: Pre-existing TS errors in other files (ShowcaseGallery, landing pages, etc.)
prevented normal commit. Smoke tests and lint pass.1 parent 68dfe5f commit caa303f
File tree
15 files changed
+179
-534
lines changed- src
- components
- admin
- markdown
- queries
- routes
- utils
- markdown
15 files changed
+179
-534
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | | - | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
418 | | - | |
419 | | - | |
420 | | - | |
| 418 | + | |
| 419 | + | |
421 | 420 | | |
422 | 421 | | |
423 | 422 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
6 | 4 | | |
7 | 5 | | |
| |||
334 | 332 | | |
335 | 333 | | |
336 | 334 | | |
337 | | - | |
338 | | - | |
| 335 | + | |
339 | 336 | | |
340 | 337 | | |
341 | 338 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | | - | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
24 | 53 | | |
25 | 54 | | |
26 | 55 | | |
| |||
55 | 84 | | |
56 | 85 | | |
57 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
58 | 97 | | |
59 | 98 | | |
60 | 99 | | |
| |||
476 | 515 | | |
477 | 516 | | |
478 | 517 | | |
479 | | - | |
480 | | - | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
481 | 527 | | |
482 | 528 | | |
483 | 529 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments