Skip to content

Conversation

@ehuss
Copy link
Contributor

@ehuss ehuss commented Dec 12, 2025

This changes the name of the TrplNote mdbook preprocessor so that it matches the name used in book.toml. The reason this needs to be in sync is that in upstream we use MDBook::with_preprocessor to replace the preprocessor, but unfortunately it grabs the name from the preprocessor itself. If these are out of sync, it ends up not being able to replace the old preprocessor config. The API in mdbook should probably be better to make it easier to manage the config. For now, this is probably the easiest fix.

This changes the name of the `TrplNote` mdbook preprocessor so that it
matches the name used in `book.toml`. The reason this needs to be in
sync is that in upstream we use `MDBook::with_preprocessor` to replace
the preprocessor, but unfortunately it grabs the name from the
preprocessor itself. If these are out of sync, it ends up not being able
to replace the old preprocessor config. The API in mdbook should
probably be better to make it easier to manage the config. For now, this
is probably the easiest fix.
Copy link
Member

@carols10cents carols10cents left a comment

Choose a reason for hiding this comment

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

Seems fine to me! Thank you!

@carols10cents carols10cents merged commit 39aecea into rust-lang:main Dec 12, 2025
3 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.

2 participants