anomalyco / anomalyco/opencode
[FEATURE]: WYSIWYG Preview & Edit for docx / HTML / Markdown
Open
@Hona is already working on this.
Since Jul 30, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- Avg merge
- 7h 2m
- Merged PRs (30d)
- 384
Description
Feature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Problem:
When using opencode to generate or modify documents (docx, HTML, Markdown), the current workflow is entirely code-diff based — you see raw diffs of the source, not a rendered preview of the final document. This makes it difficult to:
- Judge whether the visual/layout result is correct before applying changes.
- Make fine-grained adjustments to rendered content (e.g., tweak a table layout in docx, adjust heading hierarchy in Markdown, or fix an HTML element's styling).
- Iterate quickly on document content without going through many
/undo+ re-prompt cycles.
Solution:
A preview/edit mode for rendered document types (docx, HTML, Markdown) that works like a WYSIWYG editor:
- After opencode generates or modifies a document, show a rendered preview of the result (not just source diff).
- Allow the user to:
- Directly edit text, formatting, and layout within the rendered preview.
- See changes reflected in real-time.
- Confirm or discard individual edits before finalizing.
- The underlying source (docx/HTML/MD) is updated accordingly after confirmation.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.