Skip to content

fix: Implement stack safety for parser-driven rendering#147

Merged
erweixin merged 3 commits into
mainfrom
fix-deep
Jul 25, 2026
Merged

fix: Implement stack safety for parser-driven rendering#147
erweixin merged 3 commits into
mainfrom
fix-deep

Conversation

@erweixin

@erweixin erweixin commented Jul 24, 2026

Copy link
Copy Markdown
Owner

fix #143 #144

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

Reviewed commit: cb5292ba74

ℹ️ 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 thread crates/ratex-parser/src/mhchem/mod.rs Outdated

/// Context for recursive `go` (used by actions).
pub struct ParserCtx<'a> {
pub(crate) struct ParserCtx<'a> {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve the public ParserCtx API

Downstream crates can currently import ratex_parser::mhchem::ParserCtx, construct it as ParserCtx { data: data() }, and call its public go method because the enclosing mhchem module is public. Making this type pub(crate)—while also adding a required internal field—causes those consumers to stop compiling as part of an otherwise internal stack-safety change; preserve the exported API or provide a compatible migration path.

Useful? React with 👍 / 👎.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 24, 2026

Copy link
Copy Markdown

Deploying ratex with  Cloudflare Pages  Cloudflare Pages

Latest commit: 685ac0d
Status: ✅  Deploy successful!
Preview URL: https://50813d3f.ratex.pages.dev
Branch Preview URL: https://fix-deep.ratex.pages.dev

View logs

@erweixin
erweixin merged commit 62f5923 into main Jul 25, 2026
7 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.

Uncatchable stack overflow: unbounded recursion in layout_accent on combining-mark sequences

1 participant