Files
ragflow/internal
xugangqiang 7c19bb074a test(parser): add shared golden-doc + alignment helpers
Extract the alignment scaffolding so the format-specific PRs (text&code,
markdown golden, HTML) don't conflict on align_test.go.

Adds (test-only, no production behavior change):
- GoldenDoc{Meta,Items} and parseGolden: tolerant of both the legacy bare
  array and the new {meta, items} golden format.
- LoadGoldenDoc, AcceptedDivergences(meta), FilterOutDocTypes(items, drop):
  meta-driven divergence handling, no hardcoded divergence lists.
- TextCodeAlignOptions / DefaultTextCodeDelimiter, HTMLAlignOptions /
  StripHTMLHeadingMarker: normalizer presets reused by the alignment tests.
- LoadGolden now tolerates the {meta, items} format.

Stacks on #18014 (the align_test.go framework is already in main).
2026-08-11 17:12:59 +08:00
..
2026-08-11 11:54:57 +08:00
2026-08-10 18:04:17 +08:00
2026-08-11 16:18:49 +08:00
2026-08-10 20:49:32 +08:00
2026-07-27 10:20:16 +08:00
2026-08-05 22:05:07 +08:00