Skip to content

Comments

docs: add MDX features reference for content authors#1045

Open
je-contractor wants to merge 6 commits intomainfrom
je/docs-mdx-features-reference
Open

docs: add MDX features reference for content authors#1045
je-contractor wants to merge 6 commits intomainfrom
je/docs-mdx-features-reference

Conversation

@je-contractor
Copy link
Collaborator

@je-contractor je-contractor commented Feb 21, 2026

Summary

Adds a practical reference doc (MDX_FEATURES.md) listing all available MDX components, GFM features, props, and usage examples for content authors. This replaces reliance on Fern's documentation which will diverge over time.

Covers: Callout (all variants), Card/CardGroup, CodeGroup, Tabs, Steps, Accordion, Markdown includes, Icon, Images, Mermaid diagrams, StickyTable, and standard GFM features.

Ticket: DX-2236

@je-contractor je-contractor self-assigned this Feb 21, 2026
@github-actions
Copy link

github-actions bot commented Feb 21, 2026

🔗 Preview Mode

Name Status Preview Updated (UTC)
Alchemy Docs ✅ Ready 🔗 Visit Preview Feb 24, 2026, 7:34 AM

@je-contractor je-contractor marked this pull request as ready for review February 23, 2026 18:44
@je-contractor je-contractor requested a review from a team as a code owner February 23, 2026 18:44
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b9e53cf245

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

MDX_FEATURES.md Outdated
Comment on lines 306 to 307
```md
<Steps>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use outer quadruple fence in Steps example

The Steps usage sample is opened with a triple-backtick fence ( ```md), but the sample itself contains multiple triple-backtick code blocks, so the first inner fence closes the outer block and the rest of the example is rendered as real markdown instead of literal source. This makes the section hard to read and gives authors a broken snippet to copy for Steps with nested code blocks.

Useful? React with 👍 / 👎.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex beat me to it. This section looks weird

Image

Copy link
Collaborator Author

@je-contractor je-contractor Feb 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed - switched to quintuple backtick fencing on the outer block.

MDX_FEATURES.md Outdated
Comment on lines 61 to 62
* \[x] Completed task
* \[ ] Incomplete task

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Show task-list syntax without escaped brackets

The task-list example escapes the brackets (\[x] and \[ ]), so readers who copy this snippet will get literal bracket text rather than GFM checkbox items. Since this section is documenting supported remark-gfm syntax, the sample should use unescaped [x]/[ ] to produce actual task lists.

Useful? React with 👍 / 👎.

Copy link
Collaborator

@dslovinsky dslovinsky Feb 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

verified issue

Image

Copy link
Collaborator Author

@je-contractor je-contractor Feb 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed - removed the backslash escapes so they render as proper checkboxes.

MDX_FEATURES.md Outdated

## Code Blocks

Fenced code blocks support syntax highlighting via [Shiki](https://shiki.matsu.io/) with dual light/dark themes.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically we use rehype-pretty-code which I think uses shiki under the hood

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to reference rehype-pretty-code (powered by Shiki).

MDX_FEATURES.md Outdated
Comment on lines 61 to 62
* \[x] Completed task
* \[ ] Incomplete task
Copy link
Collaborator

@dslovinsky dslovinsky Feb 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

verified issue

Image

MDX_FEATURES.md Outdated
Comment on lines 306 to 307
```md
<Steps>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex beat me to it. This section looks weird

Image

Fix task list escaping, correct Shiki attribution to rehype-pretty-code,
add line highlighting syntax, fix broken Steps fencing, link icon sprite
sheet, and correct StickyTable description.
Prettier re-escapes task list brackets on commit. Adding this specific
file to .prettierignore prevents that while leaving all other md/mdx
files unaffected.
Prettier re-escapes GFM task list brackets when run directly on staged
files. Filter this file out of the prettier step in lint-staged config.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants