The GitHub Actions job "CI" on rocketmq-dashboard.git/fix/yy-ai-markdown has 
failed.
Run started by GitHub user yyqdbngt (triggered by yyqdbngt).

Head commit for run:
8f1d1294b9751d0f34b7d87ea91be139d83d5187 / yyqdbngt <[email protected]>
fix(ai): stop the markdown repair from rewriting well-formed markdown

`normalizeAiMarkdown` promised "well-formed input comes back unchanged", but
broke it three ways: `/^(#{1,6})(?=\S)/` backtracked to a shorter marker run, so
`## 概述` became `# # 概述` (an h1 whose text starts with a literal `#`);
`/^([-+*])(?=\S)/` could not tell a bullet from `**加粗**`, `*斜体*`, `---` or
`-1`; and both passes ran over the raw text, so a fenced diff lost its `-`/`+`
markers in place.

The repairs are now as narrow as the promise: the heading rule keeps the whole
marker run (`(?=[^\s#])`), the bullet rule fires only on a line that really 
opens
a list, and both skip the inside of a fenced block. The three repairs the
function exists for (`##结论`, `-第一项`, a fence info string running into its
command) still happen, and the function stays idempotent.

New file `web/src/pages/ai/render/__tests__/markdown.test.ts` pins both halves:
the repairs, and every well-formed form the old code corrupted.

Report URL: 
https://github.com/apache/rocketmq-dashboard/actions/runs/36961167910

With regards,
GitHub Actions via GitBox

Reply via email to