Experimental MDX field does not support captions for images

Open
#933 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
markdown, typescript
Domain
content

Research direction

Start by reproducing the caption behavior in the experimental MDX field's WYSIWYG editor and compare its generated Markdown with the manually authored image syntax shown in the issue. Done means an image caption entered through the editor is preserved correctly when the Markdown file is inspected.

Written by the indexing model from the issue text.

Description

I noticed that on the experimental MDX field, Keystatic doesn't support captions for images.

So you would have something like this being displayed in Keystatic's editor:
![Alt text](/path/to/img.jpg "Caption text")

image

I added the image by manually editing the file. However if you add an image with a caption via Keystatic's WYSIWYG editor... something weird happens if you then inspect the Markdown file.

image

Dominant language
TypeScript
Stars
2.4k
Forks
159
Avg merge
21h 41m
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Thinkmill/keystatic

All issues in Thinkmill/keystatic

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.