# TODO

- [ ] Decide and enforce markdown trust model (sanitize or trusted-only).
  Severity: high
  Estimate: large
  Scope: review `goldmark.WithUnsafe()` usage; add sanitization for untrusted content or explicitly document trusted-only assumptions and limits.

- [ ] Add guardrails around output directory deletion.
  Severity: medium
  Estimate: medium
  Scope: validate `--out` and block dangerous targets (`/`, `.`, repo root, empty path) before `RemoveAll`.

- [ ] Improve watch mode scalability and theme path correctness.
  Severity: medium
  Estimate: medium
  Scope: reduce full-tree polling overhead and ensure watched theme directory matches the effective theme (config theme + override).

- [ ] Harden dev server defaults.
  Severity: low
  Estimate: small
  Scope: use `http.Server` with read/write/idle timeouts and prefer localhost binding by default.

## Completed

- [x] Tele-type fonts.
  Severity: low
  Estimate: small
  Scope:
  Fonts:
  - https://www.dafont.com/bygonest-typewriter.font?text=host+%3A+%7E+%3E&back=theme (https://dl.dafont.com/dl/?f=bygonest_typewriter)
  - https://www.dafont.com/rough-typewriter.font?text=host+%3A+%7E+%3E&back=theme (https://dl.dafont.com/dl/?f=rough_typewriter)
  - https://www.dafont.com/veteran-typewriter.font?text=host+%3A+%7E+%3E&back=theme (https://dl.dafont.com/dl/?f=veteran_typewriter)
  - https://github.com/rand-projects/teletypewriter-fonts?utm_source=copilot.com
  Notes: https://copilot.microsoft.com/shares/tZz1g1YkJgTYZABchewGC
  - https://youtu.be/MikoF6KZjm0?si=1FPuMLx4yD69MIuB&t=74 (teletype model 37 tracktor feed paper)

- [x] Harden asciinema shortcode script generation against script-breakout injection.
  Severity: high
  Estimate: large
  Scope: avoid placing user-controlled values directly in inline JavaScript; prevent `</script>` breakout; prefer safe serialization/data attributes.
