Skip to content

Conversation

hkdeman
Copy link
Contributor

@hkdeman hkdeman commented Jul 22, 2025

Enhanced remarkSafeVars plugin to preserve placeholder variables that were being stripped during MDX compilation:

  • Detect mdxTextExpression nodes that look like HTML tag placeholders
  • Convert expressions like {id} back to format before rendering as code
  • Add support for compound variables like userId, companyId
  • Maintain compatibility with existing known components
  • Handle both text and flow context JSX elements

This resolves the issue where routes like /share/<id>/user were being rendered as /share//user due to MDX treating as undefined variables.

Closes #39

Generated with Claude Code

Enhanced remarkSafeVars plugin to preserve placeholder variables that were being stripped during MDX compilation:

- Detect mdxTextExpression nodes that look like HTML tag placeholders
- Convert expressions like {id} back to <id> format before rendering as code
- Add support for compound variables like userId, companyId
- Maintain compatibility with existing known components
- Handle both text and flow context JSX elements

This resolves the issue where routes like /share/<id>/user were being rendered as /share//user due to MDX treating <id> as undefined variables.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: H <[email protected]>
Copy link

jazzberry-ai bot commented Jul 22, 2025

An error occured.

This error may be due to rate limits. If this error persists, please email us.

Copy link

jazzberry-ai bot commented Jul 22, 2025

An error occured.

This error may be due to rate limits. If this error persists, please email us.

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.

[BUG] - Issue building docs with <id> type of words

1 participant