Skip to content

test: verify MDX expression execution - #41

Open
stormbreaker-mcu wants to merge 1 commit into
tempus-ex:mainfrom
stormbreaker-mcu:test-mdx-expression
Open

test: verify MDX expression execution#41
stormbreaker-mcu wants to merge 1 commit into
tempus-ex:mainfrom
stormbreaker-mcu:test-mdx-expression

Conversation

@stormbreaker-mcu

Copy link
Copy Markdown

Security verification test.

This PR adds a test page to verify whether MDX JSX expressions
are executed by the renderer. The page contains:

- Arithmetic expression: {1 + 1} (should render as 2)
- typeof expression: {typeof window} (should render as 'object')
- Array expression: {[1, 2, 3].length} (should render as 3)

If these expressions are rendered as literal text (not executed),
the page will show the raw curly-brace syntax.
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.

1 participant