You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(rich-markdown-editor): tighten read-only gate for uppercase entities and orphan ref-defs
Two silent-corruption cases the idempotency probe can't see:
- The HTML-entity safe-list used a case-insensitive regex, so `&`/`<`/`>` were
treated as the round-trippable canonical entities and let through as editable, but the
serializer only round-trips the lowercase forms and mangles the uppercase ones. Make the
safe-list case-sensitive.
- An unused reference definition (`[x]: url` with no `[x]` reference) is dropped entirely on
serialize, a deletion the idempotency probe misses. Detect orphan definitions and open
read-only; used definitions still inline losslessly and stay editable.
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/round-trip-safety.test.ts
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/round-trip-safety.ts
0 commit comments