fix: avoid non-existent variables#703
Merged
RiskeyL merged 1 commit intolanggenius:mainfrom Mar 11, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates MDX documentation to render placeholder braces (e.g., {api_key}, {id}) as literal text instead of being parsed as MDX/JSX expressions that can trigger “variable not defined” errors during build.
Changes:
- Escape placeholder braces in Markdown tables (e.g.,
\{api_key\},\{id\}). - Render brace-containing placeholders safely inside HTML/JSX tables using JSX string expressions (e.g.,
{"workflow_{id}"},{'\"message_{id}\"'}). - Minor formatting cleanup in one CN doc line (indentation/line alignment).
Reviewed changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| zh/use-dify/workspace/api-extension/api-extension.mdx | Escapes {api_key} placeholder in header table to avoid MDX expression parsing; minor formatting adjustment. |
| zh/use-dify/monitor/integrations/integrate-weave.mdx | Escapes {id} placeholders in Markdown tables so they render literally. |
| zh/use-dify/monitor/integrations/integrate-langsmith.mdx | Escapes {id} placeholders in Markdown tables (workflow/message name rows). |
| zh/use-dify/monitor/integrations/integrate-langfuse.mdx | Uses JSX string rendering in HTML table cells to display workflow_{id} / message_{id} literally. |
| ja/use-dify/workspace/api-extension/api-extension.mdx | Escapes {api_key} placeholder in header table to avoid MDX expression parsing. |
| ja/use-dify/monitor/integrations/integrate-weave.mdx | Escapes {id} placeholders in Markdown tables so they render literally. |
| ja/use-dify/monitor/integrations/integrate-phoenix.mdx | Uses JSX string rendering in HTML table cell to display workflow_{id} literally. |
| ja/use-dify/monitor/integrations/integrate-opik.mdx | Uses JSX string rendering in HTML table cell to display workflow_{id} literally. |
| ja/use-dify/monitor/integrations/integrate-langsmith.mdx | Uses JSX string rendering in HTML table cells for workflow_{id} and "message_{id}". |
| ja/use-dify/monitor/integrations/integrate-langfuse.mdx | Uses JSX string rendering in HTML table cells to display workflow_{id} / message_{id} literally. |
| ja/use-dify/monitor/integrations/integrate-arize.mdx | Uses JSX string rendering in HTML table cell to display workflow_{id} literally. |
| en/use-dify/workspace/api-extension/api-extension.mdx | Escapes {api_key} placeholder in header table to avoid MDX expression parsing. |
| en/use-dify/monitor/integrations/integrate-weave.mdx | Escapes {id} placeholders in Markdown tables so they render literally. |
| en/use-dify/monitor/integrations/integrate-phoenix.mdx | Uses JSX string rendering in HTML table cell to display workflow_{id} literally. |
| en/use-dify/monitor/integrations/integrate-opik.mdx | Uses JSX string rendering in HTML table cell to display workflow_{id} literally. |
| en/use-dify/monitor/integrations/integrate-langsmith.mdx | Uses JSX string rendering in HTML table cells for workflow_{id} and "message_{id}". |
| en/use-dify/monitor/integrations/integrate-langfuse.mdx | Uses JSX string rendering in HTML table cells to display workflow_{id} / message_{id} literally. |
| en/use-dify/monitor/integrations/integrate-arize.mdx | Uses JSX string rendering in HTML table cell to display workflow_{id} literally. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
RiskeyL
approved these changes
Mar 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.