Embed test

Sandbox page for visually verifying the two embed modes (plain and styled) against the original blocks. Not linked from any sidebar — reach it directly at /dev/embed-test.

The plain form embeds raw block content as if pasted into the page; the styled form (suffix bang) wraps it in a slate-accented box with type and source link in the header.

Source blocks

Original blocks defined here for comparison further down.

A demo definition of δ\delta such that δ(x)dx=1\int_{-\infty}^{\infty} \delta(x)\,dx = 1.

For all xRx \in \mathbb{R}, the inequality x20x^2 \geq 0 holds, with equality iff x=0x = 0.

Let f(x)=x2f(x) = x^2. Then f(3)=f(3)=9f(-3) = f(3) = 9 and f(x)=2xf'(x) = 2x.

Headline. A short remark that recasts the same idea in different notation, to illustrate how the embed reproduces the amber accent.

A bare block — no directive type, so no visual styling. Acts as a referenceable container only.

Plain mode

Each embed below should render visually identically to the source block above it: same accent color, same label-pill, same border. The only difference is that this is a recap, not the canonical site (the source is the one that owns the id and ranks higher in search).

Definition (blue)

[embedded: def-embed-test-def]

Theorem (purple)

[embedded: theorem-embed-test-thm]

Example (green)

[embedded: example-embed-test-ex]

Remark (amber)

[embedded: remark-embed-test-rmk]

Bare block (no styling)

[embedded: block-embed-test-block]

Styled mode

All five embeds below take the same content but wrap it in the slate-accented embed box. The slate is intentionally distinct from definition/theorem/example/remark colors so an embed never gets confused with a real typed block. Header label combines type and name; clicking it jumps to the source.

Definition embed

[embedded: def-embed-test-def]

Theorem embed

[embedded: theorem-embed-test-thm]

Example embed

[embedded: example-embed-test-ex]

Remark embed

[embedded: remark-embed-test-rmk]

Bare block embed

[embedded: block-embed-test-block]

Cross-page lookup

The embeds above all resolve via the same-page [data-named-block] query. Below pulls a real definition from another page (appendix/linear-algebra/inner-product), exercising the content-map.json lookup path.

Plain

[embedded: def-inner-product]

Styled

[embedded: def-inner-product]

Page references

@page/<pageId> resolves to the page’s URL via pageId frontmatter; trailing segment becomes a heading anchor. Styled like a block-ref (dashed underline, away-arrow on hover) but no popup.