Conversation
🚀 Preview DeploymentYour documentation preview is ready! Preview URL: https://pr-65.comapeo-docs.pages.dev This preview will update automatically when you push new commits to this PR. Built with commit d023dc6 |
There was a problem hiding this comment.
💡 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".
8f4caa0 to
5e76356
Compare
🧹 Preview Deployment CleanupThe preview deployment for this PR has been cleaned up. Preview URL was: Note: Cloudflare Pages deployments follow automatic retention policies. Old previews are cleaned up automatically. |
There was a problem hiding this comment.
💡 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".
| try { | ||
| return defaultParagraphToMarkdown(paragraphBlock as BlockObjectResponse); |
There was a problem hiding this comment.
Preserve nested indentation when delegating paragraph transform
The custom paragraphTransformer returns early for empty blocks and otherwise delegates to the original blockToMarkdown. However, the delegation at defaultParagraphToMarkdown(paragraphBlock as BlockObjectResponse) does not forward any of the extra arguments that NotionToMarkdown passes to custom transformers (e.g. the current nesting depth). As a result every non‑empty paragraph is rendered with a nesting level of 0, so paragraphs that appear inside list items, callouts, or other nested contexts lose their indentation in the generated Markdown. Accept the extra parameters (...args) and pass them along to defaultParagraphToMarkdown so nested paragraphs still render correctly.
Useful? React with 👍 / 👎.
Summary
Testing
https://chatgpt.com/codex/tasks/task_e_690b97ff619c8327a49d6b4637527aab