Skip to content

Commit 6fdad88

Browse files
tarasclaude
andauthored
Homepage: fix escaped redirect and hero double border (#746)
* Homepage: fix escaped redirect and hero double border The `> release.md` redirect rendered as a literal `&gt;`. Under this project's `jsx: "precompile"`, a bare string in an expression container passed as a component child is escaped more than once — `>` became `&amp;amp;gt;` in the HTML. The surrounding panels were unaffected because their text sits inside element spans, which escape once. The CLI panel's text now does the same. The hero example also carried two rules: a `panel` wrapping a `code-panel`, each with its own 2px border. The wrapper existed to hold a paragraph above the example, which the current design no longer has, so it is removed and the example keeps a single border. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014idQZxeQCcKgtbVwC1pH42 * Homepage: link the planner source from the plan section Progressive disclosure for readers who want to see a real, non-trivial XMD workflow: <Plan> is an ordinary XMD document, and the raw file is the evidence. One line, no excerpt, no new heading. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014idQZxeQCcKgtbVwC1pH42 * Homepage: point the planner link at the GitHub blob view Swaps the raw.githubusercontent URL for the blob view with ?plain=1, which shows the Markdown as written instead of GitHub's render, so the components stay visible. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014idQZxeQCcKgtbVwC1pH42 --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 7cff346 commit 6fdad88

1 file changed

Lines changed: 21 additions & 9 deletions

File tree

‎site/routes/index.tsx‎

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ import {
2727

2828
const GITHUB = "https://github.com/taras/executable.md";
2929
const SPEC = `${GITHUB}/blob/main/specs/executable-mdx-spec.md`;
30+
/**
31+
* The planner is an ordinary XMD document, and its source is the evidence.
32+
* `?plain=1` shows the Markdown as written rather than GitHub's render, so
33+
* the components stay visible.
34+
*/
35+
const PLANNER_SOURCE =
36+
"https://github.com/taras/executable.md/blob/main/packages/cli/src/documents/Plan.md?plain=1";
3037
const VERSION = "v0.11.0";
3138

3239
const STEP_NUMBER =
@@ -401,13 +408,9 @@ export default define.page(function Home({ url }) {
401408
</div>
402409

403410
<div style="display:flex;flex-direction:column;gap:1.125rem;min-width:0;">
404-
<div class="panel">
405-
<div class="panel-body">
406-
<CodeBlock filename="release.md" copy>
407-
<Source lines={RELEASE_MD} />
408-
</CodeBlock>
409-
</div>
410-
</div>
411+
<CodeBlock filename="release.md" copy>
412+
<Source lines={RELEASE_MD} />
413+
</CodeBlock>
411414
</div>
412415
</section>
413416

@@ -508,9 +511,9 @@ export default define.page(function Home({ url }) {
508511
<div class="grid" style={PAIR}>
509512
<CodeBlock filename="CLI" copy>
510513
<Prompt />
511-
{" xmd plan "}
514+
<span>{" xmd plan "}</span>
512515
<span class="tok-str">{`"${PLAN_LINES}"`}</span>
513-
{" > release.md"}
516+
<span>{" > release.md"}</span>
514517
</CodeBlock>
515518

516519
<CodeBlock filename="XMD" copy>
@@ -534,6 +537,15 @@ export default define.page(function Home({ url }) {
534537
workflow out again.
535538
</p>
536539

540+
<p style={P_MD}>
541+
<strong style={STRONG}>
542+
<Term heavy>{"<Plan>"}</Term> is itself written in XMD.
543+
</strong>{" "}
544+
<a href={PLANNER_SOURCE} target="_blank" rel="noopener">
545+
Read the planner source ↗
546+
</a>
547+
</p>
548+
537549
<p style={P_MD}>
538550
<strong style={STRONG}>A Plan is text, so it composes.</strong>{" "}
539551
<Term>xmd plan</Term>{" "}

0 commit comments

Comments
 (0)