[Bug]: automark emits rough-notation spans but the frontend ships no renderer — annotations show as raw HTML code
Environment
DeepTutor v1.6.9, self-hosted Docker (auth enabled, multi-user).
What happens
Co-writer → auto-mark (/api/documents/actions/automark) returns marked_text containing <span data-rough-notation="circle|highlight|underline|box|bracket">…</span> tags (per the auto_mark_system prompt in deeptutor/co_writer/prompts/{zh,en}/edit_agent.yaml). The page then puts that marked text into the editor draft (aY(b.marked_text) in the co-writer page).
The editor is a plain-text/markdown editor, and the shipped frontend has no rough-notation renderer: web/package.json (v1.6.9) has no rough-notation dependency and no static chunk references data-rough-notation. Result: learners see the raw tags as literal <span data-rough-notation=…> code inline in their document.
Expected
Either:
- Ship rough-notation + an annotation renderer for
data-rough-notationspans (the design the prompt clearly targets), or - Have automark output plain-text annotations when no renderer is available.
Local workaround (running in production for us now)
Rewrote auto_mark_system (zh+en) to emit plain-text annotations instead: 【key term】/《key sentence》 inline marks plus a short ✏️ 批注/Notes: block at the end. Verified output is fully readable in the plain-text editor and needs no renderer. Happy to contribute the prompt back if you prefer option 2.
Related
A child using the self-hosted deployment hit this on the first essay graded with automark — the output looked like 'meaningless code' to a grade-7 student, which is how we noticed.
Rechecked the reported Co-writer path: the prompts still requested raw data-rough-notation spans without a renderer. Local dev commit 1e1e02bea switches both language prompts to readable inline plain-text marks (【term】 / 《statement》), which your issue listed as an acceptable fix. If a model still returns legacy rough-notation spans, the draft keeps the original readable text instead of inserting raw tags. Co-writer tests pass (34). This is pending push and the next release, not in v1.6.11.