pediatric-ai-scribe-v3/public/js/assistant
Daniel 3d4a95fea4
All checks were successful
Forgejo Android APK / Build signed APK (push) Successful in 1m50s
Revert the clinical assistant markdown changes and fix mermaid rendering only
Reverts 126d7928 and 2d292d12 in full. The markdown normaliser and the trailing
emphasis and dollar handling return to exactly the state tagged
pre-citation-fixes-20260828, which has been rendering acceptably in use.

The one change kept is mermaid. DOMPurify 3.1.6 strips an attribute whose value
contains "-->", and every mermaid flowchart contains one, so the sanitiser
removed data-mermaid and querySelectorAll('[data-mermaid]') never matched: the
diagram sat on "Rendering graph..." forever. Reproduced against the exact pinned
build from cdnjs; sequence diagrams using "->>" were unaffected, which is why
only flowcharts failed.

The diagram source is now percent-encoded into the attribute and decoded when
read, so no arrow ever appears in an attribute value. Nothing about the
sanitiser configuration changes and no markup is newly allowed. The reader
tolerates an unencoded value, so anything already in flight still renders.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-28 19:55:03 +02:00
..
api.js fix mobile assistant table streaming 2026-05-11 16:15:45 +02:00
citations.js Revert the clinical assistant markdown changes and fix mermaid rendering only 2026-08-28 19:55:03 +02:00
data.js feat: diversify assistant starter prompts 2026-05-07 03:19:51 +02:00
export.js fix mobile export save actions 2026-05-10 23:56:51 +02:00
images.js Prevent citations in clinical image prompts 2026-08-28 03:23:18 +02:00
sources.js harden clinical assistant source handling 2026-05-09 19:59:04 +02:00