Skip to content

Figure placeholders carry every piece of context the node holds - #5

Merged
Maxanox merged 3 commits into
mainfrom
cnd-13-figure-placeholder-context
Oct 11, 2026
Merged

Maxanox merged 3 commits into
mainfrom
cnd-13-figure-placeholder-context

Conversation

@Maxanox

@Maxanox Maxanox commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

A placeholder stands for a figure whose body is not rendered as text, so the text around it is all a reader or an index gets. It now carries the counter label, the table's size and its first-column labels, next to kind, number, caption, header and summary. Body cells stay out on purpose.

Attribute values are escaped (\, ", line breaks, ]]), so a caption can no longer break the placeholder.

  • docs/proposals/0012-placeholder-context.md
  • spec §7 sentence, docs index row, changelog entry
  • TestPlaceholderContext in tests/test_render.py; the full-coverage golden gains counter="Figure"

Closes CND-13

🤖 Generated with Claude Code

https://claude.ai/code/session_01XxXUiDn2QyzNTYnZpeVFVS

Maxanox and others added 3 commits October 11, 2026 17:16
…abels

A placeholder now holds everything its node says about itself except a
table's body cells: the counter label, the grid's size and the first
column's labels (capped at 20) join kind, number, caption, header and
summary. Attribute values are escaped so a placeholder is always one
parseable line ending at its first `]]` (docs/proposals/0012).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XxXUiDn2QyzNTYnZpeVFVS
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XxXUiDn2QyzNTYnZpeVFVS
@Maxanox
Maxanox merged commit 5be5dd9 into main Oct 11, 2026
3 checks passed
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