Skip to content

Split Markdown initial document setup out of the mount handler - #116

Merged
trissim merged 1 commit into
mainfrom
fix/native-markdown-initial-publication-20261008
Oct 8, 2026
Merged

trissim merged 1 commit into
mainfrom
fix/native-markdown-initial-publication-20261008

Conversation

@trissim

@trissim trissim commented Oct 8, 2026 •

Copy link
Copy Markdown

Markdown._on_mount updated the document and then posted the table of contents notice inline, so a subclass could not take over the update without also blocking its parent's mount. The update now lives in a new Markdown._initialize_document, which starts the update synchronously and returns an awaitable that also posts the notice when there is no initial text. _on_mount awaits it, so ordinary Markdown behaves as before. Tests are added in test_markdown_initial_publication.py.

Copilot AI balanced review requested due to automatic review settings October 8, 2026 05:52

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 7dedb65 into main Oct 8, 2026
0 of 22 checks passed
@trissim trissim changed the title Separate prepared Markdown initialization from parent mount completion Split Markdown initial document setup out of the mount handler Oct 11, 2026
@trissim
trissim deleted the fix/native-markdown-initial-publication-20261008 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