Problem: HTML output from pandoc has no live-reload; the browser must be refreshed manually after each compile. Solution: add lua/preview/reload.lua — a minimal SSE-only TCP server. start() binds 127.0.0.1:5554 and keeps EventSource connections alive; broadcast() pushes a reload event to all clients; inject() appends an EventSource script before </body> (or at EOF) on every compile so pandoc overwrites do not lose the tag. |
||
|---|---|---|
| .. | ||
| preview | ||