Skip to content

Ensure err blocks keep blank line before following HTML - #12

Open
jmfranck wants to merge 1 commit into
develfrom
codex/split-code-into-separate-notebooks-m675kk
Open

Ensure err blocks keep blank line before following HTML#12
jmfranck wants to merge 1 commit into
develfrom
codex/split-code-into-separate-notebooks-m675kk

Conversation

@jmfranck

Copy link
Copy Markdown
Owner

Summary

  • ensure formatted err blocks always leave a full blank line after closing tags so pandoc handles inline HTML like
  • add a regression test for err blocks followed immediately by
    lines

Testing

  • pytest

Codex Task

@chatgpt-codex-connectorchatgpt-codex-connectorBot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +1216 to +1220
# phase 2: insert whatever notebook output is available into staged pages
if notebook_future and notebook_future.done():
outputs, code_map = notebook_future.result()
notebook_executor.shutdown(wait=False)
notebook_executor = None

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Avoid removing placeholders before notebook outputs exist

The phase‑2 loop now calls substitute_code_placeholders even when notebook_future is still running (1216‑1220), passing empty outputs. That helper removes the data-script placeholders and swaps in a “Running notebook …” banner (see 1091‑1104), so when phase 4 later waits for the future there are no placeholders left to update and the executed outputs never make it into the staged or display HTML. Any notebook that takes longer than the pandoc render will now remain stuck showing the waiting message instead of the finished cell output.

Useful? React with 👍 / 👎.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@jmfranck