Skip to content

fix(loader): accept 'source' as fallback for Iframe src attribute#6

Open
Sappique wants to merge 1 commit into
markov-root:astro-rewritefrom
Sappique:fix/iframe-source-attribute
Open

fix(loader): accept 'source' as fallback for Iframe src attribute#6
Sappique wants to merge 1 commit into
markov-root:astro-rewritefrom
Sappique:fix/iframe-source-attribute

Conversation

@Sappique
Copy link
Copy Markdown

@Sappique Sappique commented Apr 14, 2026

Summary

  • Iframe component tables in the Risks, Governance, and Evaluations chapter docs use a source row name instead of src. convertIframe only reads attrs.src, so ~15 interactive figures across 9 sections render with an empty iframe URL and an infinite loading spinner.
  • One-line change: read attrs.src ?? attrs.source so the transformer tolerates both conventions.

Closes #5.

Tested:

  • Ran pnpm dev locally and verified previously broken figures now render correctly, including the two on /chapters/v1/evaluations/benchmarks/.
  • Verified Chapter 1 figures (which use src) still render correctly — no regression.

Iframe component tables in several chapter Google Docs use a `source`
row name instead of `src`. The transformer only reads `attrs.src`, so
the iframe is rendered with no URL and the page shows an infinite
loading spinner.

Reading `attrs.src ?? attrs.source` tolerates both conventions.

Refs markov-root#5
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.

Interactive figures in Risks, Governance, and Evaluations chapters show infinite loading spinner

1 participant