Skip to content

Let the Markdown document supply inline content for each block - #109

Merged
trissim merged 2 commits into
mainfrom
refactor/native-markdown-token-content-owner-20261007
Oct 8, 2026
Merged

trissim merged 2 commits into
mainfrom
refactor/native-markdown-token-content-owner-20261007

Conversation

@trissim

@trissim trissim commented Oct 8, 2026 •

Copy link
Copy Markdown

Markdown blocks converted their inline tokens to content themselves, leaving no place for a document to supply different content. MarkdownBlock._token_to_content in _markdown.py is now static, and build_from_token calls a new Markdown._get_token_content(token, block=...) hook. By default the hook runs the same block conversion, so ordinary documents behave as before. Two tests are added to test_markdown.py.

@trissim
trissim marked this pull request as ready for review October 8, 2026 00:29
Copilot AI balanced review requested due to automatic review settings October 8, 2026 00:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@trissim
trissim merged commit a9f39bf into main Oct 8, 2026
0 of 22 checks passed
@trissim trissim changed the title Supply Markdown inline content through its document Let the Markdown document supply inline content for each block Oct 11, 2026
@trissim
trissim deleted the refactor/native-markdown-token-content-owner-20261007 branch October 11, 2026 20:05
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.

2 participants