mdx-editor / mdx-editor/editor
support objects in frontmatter
Open
Nobody has claimed this yet.
feature request/enhancement
- Dominant language
- TypeScript
- Stars
- 3.7k
- Forks
- 307
- Avg merge
- 14h 22m
- Merged PRs (30d)
- 5
Description
Even though it might be tricky, it would be great to support objects in frontmatter.
I have a few files that have the following frontmatter shape:
---
title: 3 Tips To Write Better Code As A Beginner Frontend Developer
category: 'Engineering'
cover:
src: '/images/posts/3-tips-to-write-better-code-as-junior-developer/alex-kotliarskyi-ourQHRTE2IM-unsplash.jpg'
alt: 'A person sitting in front of a laptop'
caption: 'Photo by <a href="https://unsplash.com/@frantic">Alex Kotliarskyi</a> on Unsplash'
publishedAt: '2023/04/04'
---
The cover property gets resolved to [object Object] though.
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
Reproduce the issue with the frontmatter example in the report and trace the editor's frontmatter handling entry point; no file or test is named in the issue. The work is done when the nested cover value remains an object with its src, alt, and caption fields instead of rendering as [object Object].
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript, yaml
- Domain
- content, frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100