From 0c3cc554f65f91ed44ea4764bd62a4fdfdd83f34 Mon Sep 17 00:00:00 2001 From: stormbreaker-mcu Date: Fri, 21 Aug 2026 17:07:02 +0530 Subject: [PATCH] test: verify MDX expression execution 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. --- content/mdx-expression-test.mdx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 content/mdx-expression-test.mdx diff --git a/content/mdx-expression-test.mdx b/content/mdx-expression-test.mdx new file mode 100644 index 0000000..8f5bac8 --- /dev/null +++ b/content/mdx-expression-test.mdx @@ -0,0 +1,19 @@ +--- +title: MDX Expression Test +--- + +# Expression Test + +This page tests whether MDX expressions are executed by the renderer. + +## Arithmetic Expression + +The result of 1 + 1 is: {1 + 1} + +## typeof Expression + +The type of `window` in the browser is: {typeof window} + +## Array Expression + +The length of [1, 2, 3] is: {[1, 2, 3].length}