anyproto / anyproto/anytype-api
Support creating a mermaid js embedding
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 113
- Forks
- 20
- Avg merge
- 16m
- Merged PRs (30d)
- 1
Description
Have you read a contributing guide?
- I have read CONTRIBUTING.md
- I have searched the existing requests and didn't find any that were similar
- I have considered creating a pull request instead and want to proceed
Clear and concise description of the problem
I want to be able to create an embedding directly, specifically the mermaid.js embedding from mermaid markdown.
Suggested solution
When a mermaid markdown block is surrounded by $$ (as this is what is currently returned), we should create the embeding.
Alternative
No response
Additional context
This would be super useful for the mcp server to be able to have an llm generate the mermaid diagram and have it rendered correctly in anytype without any additional steps
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.
Research direction
No implementation file, entry point, or test is named in the issue. Start by locating the API path responsible for creating embeddings and inspect how markdown blocks are parsed; done means mermaid markdown surrounded by $$ creates a mermaid.js embedding that renders correctly in Anytype.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100