pediatric-ai-scribe-v3/test
Daniel 2d292d12af
All checks were successful
Forgejo Android APK / Build signed APK (push) Successful in 1m58s
fix: make the markdown repairs line aware so tables and ranges survive
The earlier fix corrected two of the repair rules and left the rest with the same
flaw, and the punctuation boundary it introduced let the table case back in. A
review found the remainder.

Every repair rule inserted newlines with no idea whether it was inside a markdown
table row. A dose row such as "| Dexamethasone | 0.6 mg/kg PO (max 16 mg) - single
dose | 1 |" was split mid-row, which drops that row's citation and every row
below it out of the table. A "#" column destroyed the table outright. The rules
now skip table rows, dividers and headers entirely.

Ranges were still split in three other places: in a heading, so "### Dexamethasone
0.15 - 0.6 mg/kg" rendered as a heading reading "Dexamethasone 0.15"; after a
citation; and beside a hash, where "Room # 4" became a heading. A hyphen now
starts a list item only when a number does not follow, and a run-together heading
is recognised by the capital letter after the hashes rather than by position.

Adjacent citation merging could also cross a paragraph break, turning "[1]\n\n[2]
Vancomycin only if MRSA" into "[1, 2]Vancomycin only if MRSA" -- joining two
paragraphs and moving a citation onto a claim it never supported. Merging is now
limited to citations on the same line.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-28 19:49:01 +02:00
..
admin-docs-toc.test.js test docs toc links 2026-05-09 01:33:06 +02:00
assistant-citations.test.js fix: make the markdown repairs line aware so tables and ranges survive 2026-08-28 19:49:01 +02:00
assistant-image-intent.test.js harden clinical assistant source handling 2026-05-09 19:59:04 +02:00
assistant-sources-cleaning.test.js harden clinical assistant source handling 2026-05-09 19:59:04 +02:00
backend-hardening.test.js add hardening and metrics tests 2026-05-08 19:08:29 +02:00
bedside-respiratory-ventilation.test.js allow bedside respiratory without weight 2026-05-08 09:10:33 +02:00
calc-math.test.js feat: B — extract drug data to public/data/drugs.json (schema v1.0) 2026-04-20 04:23:24 +02:00
calculators-data.test.js consolidate calculator growth helpers 2026-05-08 04:36:39 +02:00
clinical-assistant-prompt-pool.test.js feat: improve clinical assistant prompts 2026-06-06 00:01:07 +02:00
clinical-generation-options.test.js Send reasoning options only to supported model 2026-08-27 21:25:38 +02:00
clinical-notes-entrypoints.test.js convert settings loaders to modules 2026-05-08 07:17:29 +02:00
clinical-retrieval-title.test.js prefer file names for clinical sources 2026-05-09 20:10:24 +02:00
embeddings-provider.test.js fix litellm metadata model discovery 2026-05-09 04:46:06 +02:00
extension-transfer.test.js feat: add extension import preview 2026-05-08 22:26:53 +02:00
frontend-rendering-safety.test.js document architecture and harden rendering 2026-05-10 01:07:56 +02:00
learning-hub-ai-category.test.js extract learning hub cms controller 2026-05-08 16:23:01 +02:00
learning-hub-ai-panel-controller.test.js extract learning hub ai panel controller 2026-05-08 16:54:48 +02:00
learning-hub-editor.test.js extract learning hub ai panel controller 2026-05-08 16:54:48 +02:00
learning-hub-quiz-controller.test.js extract learning hub quiz controller 2026-05-08 16:38:51 +02:00
learning-hub-webdav-controller.test.js extract learning hub webdav controller 2026-05-08 16:44:02 +02:00
metrics.test.js fix metrics route normalization 2026-05-08 20:22:14 +02:00
model-defaults.test.js extract learning hub ai panel controller 2026-05-08 16:54:48 +02:00
module-entrypoints.test.js convert learning hub to module 2026-05-08 09:01:34 +02:00
notes-sanitize.test.js fix diagram delete confirmation 2026-05-08 06:28:12 +02:00
pe-guide-data.test.js move pe guide data to json 2026-05-08 08:56:21 +02:00
stt-provider.test.js simplify speech and embeddings through litellm 2026-05-09 05:09:02 +02:00
transcription-memory-policy.test.js harden logging and observability 2026-05-08 19:08:19 +02:00
tts-provider.test.js Match TTS voices to the selected LiteLLM model 2026-07-30 17:34:34 +02:00
well-visit-data.test.js remove legacy well visit schedule data 2026-05-08 08:59:23 +02:00