Feature: Support inserting LaTeX equation blocks or media at specific document positions
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 17.3k
- Forks
- 1.4k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 105
Description
Problem
When writing academic documentation with mathematical formulas, users need to insert equation blocks at precise positions in the document (e.g., right after explanatory text). Currently docs +media-insert only appends to the document end.
Current Limitations
docs +media-insertdoes not support--indexparameter for positional insertiondocs +update --mode insert_afterworks only for text, not media blocks- No API support for native Feishu equation blocks (block_type for LaTeX equations)
Requested Features
- Support
--indexindocs +media-insertto insert at specific positions - Support inserting equation/LaTeX blocks at specific positions
- Support
insert_aftermode with media files
Example Use Case
Writing paper research notes requiring formulas like:
- Token Merger:
h_{v_i} = Linear( Concat( e(s^1), e(s^2), e(s^3) ) ) - GRPO-SR Loss:
L_{GRPO-SR}(θ) = L_{policy} + α · L_{nll}
These need to appear right after explanatory text, not just at document end.
Current Workaround
Users must manually insert formulas via Feishu desktop client, breaking API-first workflow.
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Start by locating the implementations of docs +media-insert and docs +update --mode insert_after, then inspect how document blocks are sent to the Feishu API. Done means positional insertion works with media and LaTeX equation blocks, including --index and insert_after, without requiring the desktop client.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, latex
- Domain
- api, cli, documentation
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100