refactor(admin-web): move answer markdown normalization to a tested lib

Extract normalizeLooseMarkdownLine from TrackingQuestionDetailView into
a shared monitoring-answer-markdown module and harden it (model bullet
`**-` and `*` handling). Add a vitest runner and unit tests for the
normalization rules.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-12 14:57:16 +08:00
parent a04d41b230
commit d2cb2faa61
5 changed files with 50 additions and 17 deletions
+3
View File
@@ -135,6 +135,9 @@ importers:
vite-plugin-compression2:
specifier: ^2.5.3
version: 2.5.3(rollup@4.60.2)
vitest:
specifier: ^4.1.5
version: 4.1.5(@types/node@24.12.0)(vite@7.3.2(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0))
vue-tsc:
specifier: ^3.2.6
version: 3.2.6(typescript@5.9.3)